linux/Documentation/perf_counter
Arnaldo Carvalho de Melo c44613a4c1 perf_counter tools: Add locking to perf top
perf_counter tools: Add locking to perf top

We need to protect the active_symbols list as two threads change it:
the main thread adding entries to the head and the display thread
decaying entries from any place in the list.

Also related: take a snapshot of syme->count[0] before using it to
calculate the weight and to show the same number used in this calc when
displaying the symbol usage.

Reported-by: Mike Galbraith <efault@gmx.de>
Tested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20090529200307.GR4747@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-05-30 11:34:00 +02:00
..
Documentation perf_counter tools: Document '--' option parsing terminator 2009-05-29 00:02:33 +02:00
util perf_counter tools: Optionally pass a symbol filter to the dso load routines 2009-05-28 23:25:44 +02:00
.gitignore perf_counter tools: add in basic glue from Git 2009-04-20 17:36:48 +02:00
builtin-help.c perf_counter tools: Introduce stricter C code checking 2009-05-27 08:10:35 +02:00
builtin-record.c perf_counter tools: Document '--' option parsing terminator 2009-05-29 00:02:33 +02:00
builtin-report.c perf_counter tools: Shorten the DSO names using cwd 2009-05-29 19:14:08 +02:00
builtin-stat.c perf_counter tools: Also display time-normalized stat results 2009-05-29 09:46:45 +02:00
builtin-top.c perf_counter tools: Add locking to perf top 2009-05-30 11:34:00 +02:00
builtin.h perf_counter: First part of 'perf report' conversion to C + elfutils 2009-05-26 13:52:53 +02:00
command-list.txt perf_counter: First part of 'perf report' conversion to C + elfutils 2009-05-26 13:52:53 +02:00
design.txt perf_counter: documentation update 2009-05-01 13:23:45 +02:00
Makefile perf_counter tools: Move symbol resolution classes from report to libperf 2009-05-28 23:25:42 +02:00
perf.c perf_counter: First part of 'perf report' conversion to C + elfutils 2009-05-26 13:52:53 +02:00
perf.h perf_counter tools: increase limits, fix 2009-05-25 09:59:50 +02:00