diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-15 15:52:18 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-04-16 12:15:07 -0300 |
commit | 5145418b06fa907883ff1f62301d534a0d26ba18 (patch) | |
tree | a4d5dcfcc6dd3d4cdc97da3cf5d45393e5f634c2 /tools/perf/util/annotate.h | |
parent | 29ed6e76b4ca81103f31c8316f9e4cfcf134572f (diff) | |
download | linux-5145418b06fa907883ff1f62301d534a0d26ba18.tar.gz linux-5145418b06fa907883ff1f62301d534a0d26ba18.tar.bz2 linux-5145418b06fa907883ff1f62301d534a0d26ba18.zip |
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.h | 3 |
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 { struct list_head node; s64 offset; char *line; + char *name; + char *operands; }; void disasm_line__free(struct disasm_line *dl); struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos); +size_t disasm__fprintf(struct list_head *head, FILE *fp); struct sym_hist { u64 sum; |