Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304875
b: refs/heads/master
c: b9818e9
h: refs/heads/master
i:
  304873: ddff58e
  304871: 9d3e2d1
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 7, 2012
1 parent 7ee9e79 commit 823bd2f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5417072bf6b17eaa31f21f12906f381f148b5200
refs/heads/master: b9818e93759c30c8942391f4f5fadaa36659ee33
13 changes: 13 additions & 0 deletions trunk/tools/perf/util/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ bool ins__is_jump(const struct ins *ins)
return ins->ops == &jump_ops;
}

static int nop__scnprintf(struct ins *ins __used, char *bf, size_t size,
struct ins_operands *ops __used)
{
return scnprintf(bf, size, "%-6.6s", "nop");
}

static struct ins_ops nop_ops = {
.scnprintf = nop__scnprintf,
};

/*
* Must be sorted by name!
*/
Expand Down Expand Up @@ -154,6 +164,9 @@ static struct ins instructions[] = {
{ .name = "jrcxz", .ops = &jump_ops, },
{ .name = "js", .ops = &jump_ops, },
{ .name = "jz", .ops = &jump_ops, },
{ .name = "nop", .ops = &nop_ops, },
{ .name = "nopl", .ops = &nop_ops, },
{ .name = "nopw", .ops = &nop_ops, },
};

static int ins__cmp(const void *name, const void *insp)
Expand Down

0 comments on commit 823bd2f

Please sign in to comment.