linux/tools/perf
Arnaldo Carvalho de Melo f9e3d4b1a9 perf top: Fix live annotation in the --stdio interface
In the old --stdio interface the annotation is done just after one
selects a symbol, while in --tui, now the default when the required libs
are installed, we annotate all symbols with samples so that when
annotation is asked we see what happened recently on that symbol.

To achieve that the --stdio variant checks if the hist_entry being
processed is the one selected by the user via the 's' hotkey. What
happens now that we share the hist_entry abstractions with 'perf report'
is that for minimizing locking contention multiple rb_trees are used,
one for collecting the samples and other to browse/show them after
resorting it by number of samples and decay them, which is done
periodically.

So the simple test in record_precise_ip doesn't work as we move
hist_entries between those rb_trees. To fix it just check that the
underlying struct symbol associated with those hist_entries is the same.

Reported-by: Mike Galbraith <efault@gmx.de>
Tested-by: Mike Galbraith <efault@gmx.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
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-bcfnraqkux88fox9ba9767ds@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2011-11-03 11:31:26 -02:00
..
arch perf tools: Make perf.data more self-descriptive (v8) 2011-10-07 17:01:24 -03:00
bench
config perf tools: git mv tools/perf/{features-tests.mak,config/} 2011-04-19 08:18:36 -03:00
Documentation perf ui browser: Make the colors configurable and change the defaults 2011-10-18 17:03:32 -02:00
python
scripts perf script: Add drop monitor script 2011-09-29 16:41:37 -03:00
util perf report: Add progress bar when processing time ordered events 2011-11-02 12:28:35 -02:00
.gitignore
builtin-annotate.c perf ui browser: Use libslang to read keys 2011-10-20 16:59:15 -02:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c perf buildid-list: Support showing the build id in an ELF file 2011-09-29 16:41:37 -03:00
builtin-diff.c perf hists: Allow limiting the number of rows and columns in fprintf 2011-10-07 12:11:49 -03:00
builtin-evlist.c
builtin-help.c
builtin-inject.c perf session: Pass evsel in event_ops->sample() 2011-03-23 19:28:58 -03:00
builtin-kmem.c perf session: Pass evsel in event_ops->sample() 2011-03-23 19:28:58 -03:00
builtin-kvm.c
builtin-list.c
builtin-lock.c perf lock: Dropping unsupported ':r' modifier 2011-08-08 09:41:35 -03:00
builtin-probe.c perf probe: Warn when more than one line are given 2011-08-12 09:27:11 -03:00
builtin-record.c perf ui: Rename ui__warning_paranoid to ui__error_paranoid 2011-10-26 13:12:01 -02:00
builtin-report.c perf tools: Make --no-asm-raw the default 2011-10-07 17:01:32 -03:00
builtin-sched.c perf sched: Usage leftover from trace -> script rename 2011-08-09 13:32:12 -03:00
builtin-script.c perf tools: Make perf.data more self-descriptive (v8) 2011-10-07 17:01:24 -03:00
builtin-stat.c perf evlist: Fix grouping of multiple events 2011-10-26 10:25:02 -02:00
builtin-test.c perf evlist: Fix grouping of multiple events 2011-10-26 10:25:02 -02:00
builtin-timechart.c perf session: Pass evsel in event_ops->sample() 2011-03-23 19:28:58 -03:00
builtin-top.c perf top: Fix live annotation in the --stdio interface 2011-11-03 11:31:26 -02:00
builtin.h perf tools: Make perf.data more self-descriptive (v8) 2011-10-07 17:01:24 -03:00
command-list.txt
CREDITS
design.txt
Makefile perf ui browser: Use libslang to read keys 2011-10-20 16:59:15 -02:00
MANIFEST
perf-archive.sh
perf.c perf ui browser: Handle SIGWINCH 2011-10-13 08:52:46 -03:00
perf.h perf ui browser: Handle SIGWINCH 2011-10-13 08:52:46 -03:00