aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-02-06 11:54:44 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-06 13:08:50 -0500
commit36532461a0f60bb36c5470a0326f7394f19db23c (patch)
tree3cf2108006fca07f0093eda19cde4438c8b52d80 /tools/perf/util/annotate.h
parentf1e2701de02cff6d988b1dd49960620d5720cb89 (diff)
perf top: Ditch private annotation code, share perf annotate's
Next step: Live TUI annotation in perf top, just press enter on a symbol line. 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.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 53dd92de2615..b1253aadf340 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -42,6 +42,7 @@ struct source_line {
42struct annotation { 42struct annotation {
43 struct source_line *src_line; 43 struct source_line *src_line;
44 struct sym_hist *histograms; 44 struct sym_hist *histograms;
45 int nr_histograms;
45 int sizeof_sym_hist; 46 int sizeof_sym_hist;
46}; 47};
47 48
@@ -64,12 +65,16 @@ static inline struct annotation *symbol__annotation(struct symbol *sym)
64int symbol__inc_addr_samples(struct symbol *sym, struct map *map, 65int symbol__inc_addr_samples(struct symbol *sym, struct map *map,
65 int evidx, u64 addr); 66 int evidx, u64 addr);
66int symbol__alloc_hist(struct symbol *sym, int nevents); 67int symbol__alloc_hist(struct symbol *sym, int nevents);
68void symbol__annotate_zero_histograms(struct symbol *sym);
67 69
68int symbol__annotate(struct symbol *sym, struct map *map, 70int symbol__annotate(struct symbol *sym, struct map *map,
69 struct list_head *head, size_t privsize); 71 struct list_head *head, size_t privsize);
70void symbol__annotate_printf(struct symbol *sym, struct map *map, 72int symbol__annotate_printf(struct symbol *sym, struct map *map,
71 struct list_head *head, int evidx, bool full_paths, 73 struct list_head *head, int evidx, bool full_paths,
72 int min_pcnt, int max_lines); 74 int min_pcnt, int max_lines);
75void symbol__annotate_zero_histogram(struct symbol *sym, int evidx);
76void symbol__annotate_decay_histogram(struct symbol *sym,
77 struct list_head *head, int evidx);
73void objdump_line_list__purge(struct list_head *head); 78void objdump_line_list__purge(struct list_head *head);
74 79
75int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx, 80int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx,