diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/annotate.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 0905db4390c..6b4146b40a2 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -113,6 +113,16 @@ bool ins__is_jump(const struct ins *ins) | |||
113 | return ins->ops == &jump_ops; | 113 | return ins->ops == &jump_ops; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int nop__scnprintf(struct ins *ins __used, char *bf, size_t size, | ||
117 | struct ins_operands *ops __used) | ||
118 | { | ||
119 | return scnprintf(bf, size, "%-6.6s", "nop"); | ||
120 | } | ||
121 | |||
122 | static struct ins_ops nop_ops = { | ||
123 | .scnprintf = nop__scnprintf, | ||
124 | }; | ||
125 | |||
116 | /* | 126 | /* |
117 | * Must be sorted by name! | 127 | * Must be sorted by name! |
118 | */ | 128 | */ |
@@ -154,6 +164,9 @@ static struct ins instructions[] = { | |||
154 | { .name = "jrcxz", .ops = &jump_ops, }, | 164 | { .name = "jrcxz", .ops = &jump_ops, }, |
155 | { .name = "js", .ops = &jump_ops, }, | 165 | { .name = "js", .ops = &jump_ops, }, |
156 | { .name = "jz", .ops = &jump_ops, }, | 166 | { .name = "jz", .ops = &jump_ops, }, |
167 | { .name = "nop", .ops = &nop_ops, }, | ||
168 | { .name = "nopl", .ops = &nop_ops, }, | ||
169 | { .name = "nopw", .ops = &nop_ops, }, | ||
157 | }; | 170 | }; |
158 | 171 | ||
159 | static int ins__cmp(const void *name, const void *insp) | 172 | static int ins__cmp(const void *name, const void *insp) |