perf evsel: Record fd into perf_mmap
authorWang Nan <wangnan0@huawei.com>
Fri, 20 May 2016 16:38:24 +0000 (16:38 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 May 2016 17:56:58 +0000 (14:56 -0300)
commitd4c6fb36ac2c82f8f0c05b04cf102dcdc2d5a14d
tree665c128afe013e67fc919f07e907445190bce2c2
parentb90dc17a5d14a881f9bb3b58edb3d71075d58afb
perf evsel: Record fd into perf_mmap

Add a fd field into struct perf_mmap so that perf can track the mmap fd.

This feature will be used for toggling overwrite ring buffers.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1463762315-155689-3-git-send-email-wangnan0@huawei.com
Signed-off-by: He Kuang <hekuang@huawei.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h