diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2014-09-08 11:27:49 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-09-25 16:46:55 -0300 |
commit | e4b356b56cfe77b800a9bc2e6efefa6a069b8a78 (patch) | |
tree | a028e761082e6979dfff390b37cfd6a5fb8a7e2b /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2171a9256862ec139a042832a9ae737b942ca882 (diff) |
perf evlist: Unmap when all refcounts to fd are gone and events drained
As noticed by receiving a POLLHUP for all its pollfd entries.
That will remove the refcount taken in perf_evlist__mmap_per_evsel(),
and when all events are consumed via perf_evlist__mmap_read() +
perf_evlist__mmap_consume(), the ring buffer will be unmap'ed.
Thanks to Jiri Olsa for pointing out that we must wait till all events
are consumed, not being ok to unmmap just when receiving all the
POLLHUPs.
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jean Pihet <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions