aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-05-07 17:54:16 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-07 17:54:16 -0400
commit5417072bf6b17eaa31f21f12906f381f148b5200 (patch)
treeee57c5bccfc88ac660369edea9383a8773e1db1b /tools/perf/util/annotate.h
parent64aa17ca5a4e428fcb6d0806823a99a18c548506 (diff)
perf annotate browser: Do raw printing in 'o'ffset in a single place
Instead of doing the same in all ins scnprintf methods. 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-8mfairi2n1nentoa852alazv@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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 13a21f10dabb..bb0a9f27165b 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -22,7 +22,7 @@ struct ins_operands {
22struct ins_ops { 22struct ins_ops {
23 int (*parse)(struct ins_operands *ops); 23 int (*parse)(struct ins_operands *ops);
24 int (*scnprintf)(struct ins *ins, char *bf, size_t size, 24 int (*scnprintf)(struct ins *ins, char *bf, size_t size,
25 struct ins_operands *ops, bool addrs); 25 struct ins_operands *ops);
26}; 26};
27 27
28struct ins { 28struct ins {
@@ -32,6 +32,7 @@ struct ins {
32 32
33bool ins__is_jump(const struct ins *ins); 33bool ins__is_jump(const struct ins *ins);
34bool ins__is_call(const struct ins *ins); 34bool ins__is_call(const struct ins *ins);
35int ins__scnprintf(struct ins *ins, char *bf, size_t size, struct ins_operands *ops);
35 36
36struct disasm_line { 37struct disasm_line {
37 struct list_head node; 38 struct list_head node;
@@ -49,6 +50,7 @@ static inline bool disasm_line__has_offset(const struct disasm_line *dl)
49 50
50void disasm_line__free(struct disasm_line *dl); 51void disasm_line__free(struct disasm_line *dl);
51struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos); 52struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disasm_line *pos);
53int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw);
52size_t disasm__fprintf(struct list_head *head, FILE *fp); 54size_t disasm__fprintf(struct list_head *head, FILE *fp);
53 55
54struct sym_hist { 56struct sym_hist {