alistair23-linux/tools/perf
Arnaldo Carvalho de Melo e4b356b56c 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 <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-t10w1xk4myp7ca7m9fvip6a0@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-09-25 16:46:55 -03:00
..
arch perf tool: fix compilation for ARM 2014-09-17 17:08:09 -03:00
bench perf tools: Don't include sys/poll.h directly 2014-09-17 17:08:09 -03:00
config perf tools: Fix GNU-only grep usage in Makefile 2014-09-17 17:08:09 -03:00
Documentation perf tools: Disable kernel symbol demangling by default 2014-09-17 17:08:09 -03:00
python perf python: Remove duplicate TID bit from mask 2013-08-07 17:35:25 -03:00
scripts perf script: Add callchain to generic and tracepoint events 2014-07-16 17:57:33 -03:00
tests tools lib fd array: Allow associating an integer cookie with each entry 2014-09-25 16:46:55 -03:00
ui perf hists browser: Consolidate callchain print functions in TUI 2014-08-24 08:11:19 -03:00
util perf evlist: Unmap when all refcounts to fd are gone and events drained 2014-09-25 16:46:55 -03:00
.gitignore perf tools: Add perf-with-kcore script 2014-09-17 17:08:08 -03:00
builtin-annotate.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-bench.c perf bench: Add --repeat option 2014-06-19 16:13:15 -03:00
builtin-buildid-cache.c perf buildid-cache: Use strerror_r instead of strerror 2014-08-15 13:07:59 -03:00
builtin-buildid-list.c perf session: Separating data file properties from session 2013-10-21 17:33:25 -03:00
builtin-diff.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-evlist.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
builtin-help.c perf help: Use strerror_r instead of strerror 2014-08-15 13:08:26 -03:00
builtin-inject.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-kmem.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-kvm.c tools lib api: Adopt fdarray class from perf's evlist 2014-09-25 16:46:55 -03:00
builtin-list.c perf list: Add usage 2013-11-05 14:26:41 -03:00
builtin-lock.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-mem.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-probe.c perf probe: Do not access kallsyms when analyzing user binaries 2014-09-17 18:01:14 -03:00
builtin-record.c perf evlist: Introduce poll method for common code idiom 2014-09-25 16:46:55 -03:00
builtin-report.c perf tools: Disable kernel symbol demangling by default 2014-09-17 17:08:09 -03:00
builtin-sched.c perf sched: Use strerror_r instead of strerror 2014-08-15 13:07:47 -03:00
builtin-script.c perf scripting: Add 'flush' callback to scripting API 2014-08-22 13:12:11 -03:00
builtin-stat.c perf stat: Use strerror_r instead of strerror 2014-08-15 13:08:40 -03:00
builtin-timechart.c perf tools: Check recorded kernel version when finding vmlinux 2014-08-13 16:42:21 -03:00
builtin-top.c perf evlist: Introduce poll method for common code idiom 2014-09-25 16:46:55 -03:00
builtin-trace.c perf evlist: Introduce poll method for common code idiom 2014-09-25 16:46:55 -03:00
builtin.h perf tools: Add new mem command for memory access profiling 2013-04-01 12:21:44 -03:00
command-list.txt perf tools: Add new mem command for memory access profiling 2013-04-01 12:21:44 -03:00
CREDITS
design.txt perf tools: Update some code references in design.txt 2014-03-18 18:17:06 -03:00
Makefile perf tools: Add 'build-test' make target 2014-01-16 16:26:26 -03:00
Makefile.perf tools lib api: Adopt fdarray class from perf's evlist 2014-09-25 16:46:55 -03:00
MANIFEST perf kvm: Add stat support on s390 2014-07-16 17:57:33 -03:00
perf-archive.sh perf archive: Make 'f' the last parameter for tar 2012-09-17 13:10:42 -03:00
perf-completion.sh perf sched: Introduce --list-cmds for use by scripts 2014-04-16 17:16:05 +02:00
perf-sys.h perf tools: Allow to use cpuinfo on s390 2014-07-07 16:55:24 -03:00
perf-with-kcore.sh perf tools: Add perf-with-kcore script 2014-09-17 17:08:08 -03:00
perf.c perf: Use strerror_r instead of strerror 2014-08-15 10:54:29 -03:00
perf.h perf tools: Move ACCESS_ONCE from perf.h header 2014-05-05 17:49:07 +02:00