diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-15 16:04:53 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-20 12:19:30 -0400 |
commit | 2f025ea0bac2f99a2800f43f139f57c226d3b08b (patch) | |
tree | e4b822464fe8c388f59961398cdb62fdb64dcbd2 /tools/perf/util/annotate.h | |
parent | ecda45bd6cfe0badda0e8215c5a008eaf7647716 (diff) |
perf annotate: Introduce annotation_line__max_percent()
Out of the annotate_browser__write() routine, to be used in the --stdio2
mode.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-0he0wyy4haswqi1qb35x37do@git.kernel.org
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index f93c805473f9..83484e236f33 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -124,6 +124,9 @@ bool disasm_line__is_valid_jump(struct disasm_line *dl, struct symbol *sym); | |||
124 | void disasm_line__free(struct disasm_line *dl); | 124 | void disasm_line__free(struct disasm_line *dl); |
125 | struct annotation_line * | 125 | struct annotation_line * |
126 | annotation_line__next(struct annotation_line *pos, struct list_head *head); | 126 | annotation_line__next(struct annotation_line *pos, struct list_head *head); |
127 | |||
128 | double annotation_line__max_percent(struct annotation_line *al, struct annotation *notes); | ||
129 | |||
127 | int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw); | 130 | int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw); |
128 | size_t disasm__fprintf(struct list_head *head, FILE *fp); | 131 | size_t disasm__fprintf(struct list_head *head, FILE *fp); |
129 | void symbol__calc_percent(struct symbol *sym, struct perf_evsel *evsel); | 132 | void symbol__calc_percent(struct symbol *sym, struct perf_evsel *evsel); |