]> asedeno.scripts.mit.edu Git - linux.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)
commitd37f1586d0023443e2e64937769bbb1bc078866a
treeb7aa1a7aa263e1af89f75c4e80f819bc6d6690e1
parent1695849735752d2ace22d8c424ba579e33df691c
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