]> git.baikalelectronics.ru Git - kernel.git/commit
perf record: Use ring buffer consume method to look like other tools
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Sep 2014 19:42:58 +0000 (16:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Sep 2014 21:01:43 +0000 (18:01 -0300)
commitb5c84f382f8a6aa69e60415185f249b7b87044e5
treef65a2e146bbb838b882128e17d06a1b34e8fe63c
parentd731d2d976c5d4e8d8e90aa86edfb7edb4640ab8
perf record: Use ring buffer consume method to look like other tools

All builtins that consume events from perf's ring buffer now end up
calling perf_evlist__mmap_consume(), which will allow unmapping the ring
buffer when all the fds gets closed and all events in the buffer
consumed.

This is in preparation for the patchkit that will notice POLLHUP on
perf events file descriptors.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-8vhaeeoq11ppz0713el4xcps@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c