diff options
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r-- | tools/perf/util/annotate.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index dd7636d24133..934c6fe3a91b 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -7,11 +7,24 @@ | |||
7 | #include <linux/list.h> | 7 | #include <linux/list.h> |
8 | #include <linux/rbtree.h> | 8 | #include <linux/rbtree.h> |
9 | 9 | ||
10 | struct ins_ops { | ||
11 | int (*parse_target)(const char *operands, u64 *target); | ||
12 | }; | ||
13 | |||
14 | struct ins { | ||
15 | const char *name; | ||
16 | struct ins_ops *ops; | ||
17 | }; | ||
18 | |||
19 | bool ins__is_jump(const struct ins *ins); | ||
20 | |||
10 | struct disasm_line { | 21 | struct disasm_line { |
11 | struct list_head node; | 22 | struct list_head node; |
12 | s64 offset; | 23 | s64 offset; |
24 | u64 target; | ||
13 | char *line; | 25 | char *line; |
14 | char *name; | 26 | char *name; |
27 | struct ins *ins; | ||
15 | char *operands; | 28 | char *operands; |
16 | }; | 29 | }; |
17 | 30 | ||