summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorJiri Olsa2017-10-11 17:01:38 +0200
committerArnaldo Carvalho de Melo2017-11-13 13:40:00 +0100
commitf8eb37bd7c33babc01d9c2e3074ce001eec6cfbb (patch)
tree194d92702b5e17198f3b1125a57bd77133ad936f /tools/perf/util/annotate.h
parentperf annotate: Add annotation_line__(new|delete) functions (diff)
downloadkernel-qcow2-linux-f8eb37bd7c33babc01d9c2e3074ce001eec6cfbb.tar.gz
kernel-qcow2-linux-f8eb37bd7c33babc01d9c2e3074ce001eec6cfbb.tar.xz
kernel-qcow2-linux-f8eb37bd7c33babc01d9c2e3074ce001eec6cfbb.zip
perf annotate: Add annotated_source__purge function
Mov disasm__purge() to annotated_source__purge() 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-16-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 2e7a08afb04f..cb60cafae1fb 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -212,7 +212,7 @@ int symbol__annotate_printf(struct symbol *sym, struct map *map,
int min_pcnt, int max_lines, int context);
void symbol__annotate_zero_histogram(struct symbol *sym, int evidx);
void symbol__annotate_decay_histogram(struct symbol *sym, int evidx);
-void disasm__purge(struct list_head *head);
+void annotated_source__purge(struct annotated_source *as);
bool ui__has_annotation(void);