diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-18 15:10:15 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-19 09:34:27 -0500 |
commit | f626adffe17632aa7b0e2a7732b49e2c32d477d8 (patch) | |
tree | 2e30d79aafa66a5a2d4883d8a96e2da02cfc4849 /tools/perf/util/annotate.c | |
parent | 618afb294e288db086fce59de4419644215265e5 (diff) |
perf annotate: Adopt methods from hists
Those are just wrappers to annotation methods, so move them to
annotate.c
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-336h7z0bi2k51cbfi6mkpo5k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 2812e7b78d0f..91e25269bb27 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -508,6 +508,11 @@ int addr_map_symbol__inc_samples(struct addr_map_symbol *ams, int evidx) | |||
508 | return symbol__inc_addr_samples(ams->sym, ams->map, evidx, ams->al_addr); | 508 | return symbol__inc_addr_samples(ams->sym, ams->map, evidx, ams->al_addr); |
509 | } | 509 | } |
510 | 510 | ||
511 | int hist_entry__inc_addr_samples(struct hist_entry *he, int evidx, u64 ip) | ||
512 | { | ||
513 | return symbol__inc_addr_samples(he->ms.sym, he->ms.map, evidx, ip); | ||
514 | } | ||
515 | |||
511 | static void disasm_line__init_ins(struct disasm_line *dl) | 516 | static void disasm_line__init_ins(struct disasm_line *dl) |
512 | { | 517 | { |
513 | dl->ins = ins__find(dl->name); | 518 | dl->ins = ins__find(dl->name); |
@@ -1393,3 +1398,8 @@ int symbol__tty_annotate(struct symbol *sym, struct map *map, | |||
1393 | 1398 | ||
1394 | return 0; | 1399 | return 0; |
1395 | } | 1400 | } |
1401 | |||
1402 | int hist_entry__annotate(struct hist_entry *he, size_t privsize) | ||
1403 | { | ||
1404 | return symbol__annotate(he->ms.sym, he->ms.map, privsize); | ||
1405 | } | ||