aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-04-15 14:52:18 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-04-16 11:15:07 -0400
commit5145418b06fa907883ff1f62301d534a0d26ba18 (patch)
treea4d5dcfcc6dd3d4cdc97da3cf5d45393e5f634c2 /tools/perf/util/annotate.h
parent29ed6e76b4ca81103f31c8316f9e4cfcf134572f (diff)
perf annotate: Parse instruction
For lines with instructions find the name and operands, breaking those tokens for consumption by the browser. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> 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-6aazb9f5o3d9zi28e6rruv12@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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 8bb68bb2a04a..dd7636d24133 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -11,10 +11,13 @@ struct disasm_line {
11 struct list_head node; 11 struct list_head node;
12 s64 offset; 12 s64 offset;
13 char *line; 13 char *line;
14 char *name;
15 char *operands;
14}; 16};
15 17
16void disasm_line__free(struct disasm_line *dl); 18void disasm_line__free(struct disasm_line *dl);
17struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos); 19struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos);
20size_t disasm__fprintf(struct list_head *head, FILE *fp);
18 21
19struct sym_hist { 22struct sym_hist {
20 u64 sum; 23 u64 sum;