]> git.baikalelectronics.ru Git - kernel.git/commit
perf record: Make record__mmap_read generic
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Oct 2017 19:39:55 +0000 (16:39 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Oct 2017 14:20:54 +0000 (11:20 -0300)
commit14fd58ee3d933807714e5da1d849f918b96d3b5c
treeb7aa1a7aa263e1af89f75c4e80f819bc6d6690e1
parente8bb0f3dc8f668b605929a668599b3b8825f63ea
perf record: Make record__mmap_read generic

It becomes a perf_mmap method, "push", that build reads from a mmap and
"pushes" it to a consumer, that in the initial case, for 'perf record',
just writes it to the perf.data file descriptor, but may be used by
'top', etc.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-u4l1qjbi6l76r2k0nv99220n@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c