summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index dd7636d..934c6fe 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -7,11 +7,24 @@
#include <linux/list.h>
#include <linux/rbtree.h>
+struct ins_ops {
+ int (*parse_target)(const char *operands, u64 *target);
+};
+
+struct ins {
+ const char *name;
+ struct ins_ops *ops;
+};
+
+bool ins__is_jump(const struct ins *ins);
+
struct disasm_line {
struct list_head node;
s64 offset;
+ u64 target;
char *line;
char *name;
+ struct ins *ins;
char *operands;
};
OpenPOWER on IntegriCloud