summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-record.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2016-07-14 08:34:35 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-15 17:27:46 -0300
commit8db6d6b19e486eef3db41bbd74a1f4c2b82d7706 (patch)
tree719f07ba8567f25333b292519b8d6864c40b09e7 /tools/perf/builtin-record.c
parent2b4383470675c85add72725cc08840d36b409276 (diff)
downloadtalos-obmc-linux-8db6d6b19e486eef3db41bbd74a1f4c2b82d7706.tar.gz
talos-obmc-linux-8db6d6b19e486eef3db41bbd74a1f4c2b82d7706.zip
perf evlist: Update mmap related APIs and helpers
Currently, the evlist mmap related helpers and APIs accept evlist and idx, and dereference 'struct perf_mmap' by evlist->mmap[idx]. This is unnecessary, and force each evlist contains only one mmap array. Following commits are going to introduce multiple mmap arrays to a evlist. This patch refators these APIs and helpers, introduces functions accept perf_mmap pointer directly. New helpers and APIs are decoupled with perf_evlist, and become perf_mmap functions (so they have perf_mmap prefix). Old functions are reimplemented with new functions. Some of them will be removed in following commits. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: He Kuang <hekuang@huawei.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Nilay Vaish <nilayvaish@gmail.com> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1468485287-33422-4-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-record.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud