diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-06 11:54:44 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-06 13:08:50 -0500 |
commit | 36532461a0f60bb36c5470a0326f7394f19db23c (patch) | |
tree | 3cf2108006fca07f0093eda19cde4438c8b52d80 /tools/perf/util/annotate.h | |
parent | f1e2701de02cff6d988b1dd49960620d5720cb89 (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.h | 11 |
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 { | |||
42 | struct annotation { | 42 | struct 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) | |||
64 | int symbol__inc_addr_samples(struct symbol *sym, struct map *map, | 65 | int symbol__inc_addr_samples(struct symbol *sym, struct map *map, |
65 | int evidx, u64 addr); | 66 | int evidx, u64 addr); |
66 | int symbol__alloc_hist(struct symbol *sym, int nevents); | 67 | int symbol__alloc_hist(struct symbol *sym, int nevents); |
68 | void symbol__annotate_zero_histograms(struct symbol *sym); | ||
67 | 69 | ||
68 | int symbol__annotate(struct symbol *sym, struct map *map, | 70 | int symbol__annotate(struct symbol *sym, struct map *map, |
69 | struct list_head *head, size_t privsize); | 71 | struct list_head *head, size_t privsize); |
70 | void symbol__annotate_printf(struct symbol *sym, struct map *map, | 72 | int 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); |
75 | void symbol__annotate_zero_histogram(struct symbol *sym, int evidx); | ||
76 | void symbol__annotate_decay_histogram(struct symbol *sym, | ||
77 | struct list_head *head, int evidx); | ||
73 | void objdump_line_list__purge(struct list_head *head); | 78 | void objdump_line_list__purge(struct list_head *head); |
74 | 79 | ||
75 | int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx, | 80 | int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx, |