diff options
author | Jiri Olsa | 2017-10-11 17:01:34 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2017-11-13 13:39:59 +0100 |
commit | c4c724364d398a9746410d5ff482e8c4c7228249 (patch) | |
tree | ab2fbbf54cb1b6418f0afcfb6117ffb9bca81fde /tools/perf/util/annotate.h | |
parent | perf annotate: Add evsel into struct annotation_line_args (diff) | |
download | kernel-qcow2-linux-c4c724364d398a9746410d5ff482e8c4c7228249.tar.gz kernel-qcow2-linux-c4c724364d398a9746410d5ff482e8c4c7228249.tar.xz kernel-qcow2-linux-c4c724364d398a9746410d5ff482e8c4c7228249.zip |
perf annotate: Add annotation_line__next function
Rename disasm__get_next_ip_line() to annotation_line__next() to make it
work over a generic struct annotation_line.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171011150158.11895-12-jolsa@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, 2 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index baf34032504a..43bef6cacbc4 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -85,7 +85,8 @@ struct sym_hist_entry { }; void disasm_line__free(struct disasm_line *dl); -struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos); +struct annotation_line * +annotation_line__next(struct annotation_line *pos, struct list_head *head); int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw); size_t disasm__fprintf(struct list_head *head, FILE *fp); double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, |