aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 3dc4ca1d6c08..20f3326cc640 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -67,12 +67,17 @@ struct annotation_options {
67 bool hide_src_code, 67 bool hide_src_code,
68 use_offset, 68 use_offset,
69 jump_arrows, 69 jump_arrows,
70 print_lines,
71 full_path,
70 show_linenr, 72 show_linenr,
71 show_nr_jumps, 73 show_nr_jumps,
72 show_nr_samples, 74 show_nr_samples,
73 show_total_period, 75 show_total_period,
74 show_minmax_cycle; 76 show_minmax_cycle;
75 u8 offset_level; 77 u8 offset_level;
78 int min_pcnt;
79 int max_lines;
80 int context;
76}; 81};
77 82
78enum { 83enum {
@@ -328,8 +333,8 @@ int symbol__strerror_disassemble(struct symbol *sym, struct map *map,
328 int errnum, char *buf, size_t buflen); 333 int errnum, char *buf, size_t buflen);
329 334
330int symbol__annotate_printf(struct symbol *sym, struct map *map, 335int symbol__annotate_printf(struct symbol *sym, struct map *map,
331 struct perf_evsel *evsel, bool full_paths, 336 struct perf_evsel *evsel,
332 int min_pcnt, int max_lines, int context); 337 struct annotation_options *options);
333int symbol__annotate_fprintf2(struct symbol *sym, FILE *fp); 338int symbol__annotate_fprintf2(struct symbol *sym, FILE *fp);
334void symbol__annotate_zero_histogram(struct symbol *sym, int evidx); 339void symbol__annotate_zero_histogram(struct symbol *sym, int evidx);
335void symbol__annotate_decay_histogram(struct symbol *sym, int evidx); 340void symbol__annotate_decay_histogram(struct symbol *sym, int evidx);
@@ -340,12 +345,10 @@ int map_symbol__annotation_dump(struct map_symbol *ms, struct perf_evsel *evsel)
340bool ui__has_annotation(void); 345bool ui__has_annotation(void);
341 346
342int symbol__tty_annotate(struct symbol *sym, struct map *map, 347int symbol__tty_annotate(struct symbol *sym, struct map *map,
343 struct perf_evsel *evsel, bool print_lines, 348 struct perf_evsel *evsel, struct annotation_options *opts);
344 bool full_paths, int min_pcnt, int max_lines);
345 349
346int symbol__tty_annotate2(struct symbol *sym, struct map *map, 350int symbol__tty_annotate2(struct symbol *sym, struct map *map,
347 struct perf_evsel *evsel, bool print_lines, 351 struct perf_evsel *evsel, struct annotation_options *opts);
348 bool full_paths);
349 352
350#ifdef HAVE_SLANG_SUPPORT 353#ifdef HAVE_SLANG_SUPPORT
351int symbol__tui_annotate(struct symbol *sym, struct map *map, 354int symbol__tui_annotate(struct symbol *sym, struct map *map,