aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-02-08 12:29:25 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-08 12:29:25 -0500
commitd5e3d747007fdb541e57ed72e020ff0b94db3470 (patch)
tree96dc1bf70895e24f3b85f44ee03cd0896105762a /tools/perf/util/annotate.h
parentce6f4fab4059cd72638a0cfa596a8ee2c79c1c8e (diff)
perf annotate: Fix annotate context lines regression
The live annotation done in 'perf top' needs to limit the context before lines that aren't filtered out by the min percent filter, if we don't do that, the screen in a tty often is not enough for showing what is interesting: lines with hits and a few source code lines before it. Reported-by: Mike Galbraith <efault@gmx.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index b237c8678c22..e848803fcd48 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -78,7 +78,8 @@ void symbol__annotate_zero_histograms(struct symbol *sym);
78int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize); 78int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize);
79int symbol__annotate_init(struct map *map __used, struct symbol *sym); 79int symbol__annotate_init(struct map *map __used, struct symbol *sym);
80int symbol__annotate_printf(struct symbol *sym, struct map *map, int evidx, 80int symbol__annotate_printf(struct symbol *sym, struct map *map, int evidx,
81 bool full_paths, int min_pcnt, int max_lines); 81 bool full_paths, int min_pcnt, int max_lines,
82 int context);
82void symbol__annotate_zero_histogram(struct symbol *sym, int evidx); 83void symbol__annotate_zero_histogram(struct symbol *sym, int evidx);
83void symbol__annotate_decay_histogram(struct symbol *sym, int evidx); 84void symbol__annotate_decay_histogram(struct symbol *sym, int evidx);
84void objdump_line_list__purge(struct list_head *head); 85void objdump_line_list__purge(struct list_head *head);