diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-29 15:44:56 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-08-01 16:06:46 -0400 |
commit | 5cb725a9723aebb248106ff7f8c6c7253b24bbb1 (patch) | |
tree | 0196bf479c598964a6466cd5efed2e8744645094 /tools/perf/util/annotate.h | |
parent | ce92834407a465c25c0be1a4a0339c625e44c4db (diff) |
perf annotate: Rename symbol__annotate() to symbol__disassemble()
This function will not annotate anything, it will just disassembly the
given map->dso and symbol.
It currently does this by parsing the output of 'objdump --disassemble',
but this could conceivably be done using a library or an offshot of
the kernel's instruction decoder (arch/x86/lib/inat.c), etc.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-2xpfl4bfnrd6x584b390qok7@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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index a23084f54128..b0750d8bee1f 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -155,7 +155,7 @@ int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 addr); | |||
155 | int symbol__alloc_hist(struct symbol *sym); | 155 | int symbol__alloc_hist(struct symbol *sym); |
156 | void symbol__annotate_zero_histograms(struct symbol *sym); | 156 | void symbol__annotate_zero_histograms(struct symbol *sym); |
157 | 157 | ||
158 | int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize); | 158 | int symbol__disassemble(struct symbol *sym, struct map *map, size_t privsize); |
159 | 159 | ||
160 | int symbol__annotate_init(struct map *map, struct symbol *sym); | 160 | int symbol__annotate_init(struct map *map, struct symbol *sym); |
161 | int symbol__annotate_printf(struct symbol *sym, struct map *map, | 161 | int symbol__annotate_printf(struct symbol *sym, struct map *map, |