mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
perf annotate: Add annotation_line__add function
Rename disasm__add() into annotation_line__add() to make it work over a generic struct annotation_line. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20171011150158.11895-13-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
c4c724364d
commit
82b9d7ff09
1 changed files with 3 additions and 3 deletions
|
@ -937,9 +937,9 @@ int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool r
|
||||||
return ins__scnprintf(&dl->ins, bf, size, &dl->ops);
|
return ins__scnprintf(&dl->ins, bf, size, &dl->ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void disasm__add(struct list_head *head, struct disasm_line *line)
|
static void annotation_line__add(struct annotation_line *al, struct list_head *head)
|
||||||
{
|
{
|
||||||
list_add_tail(&line->al.node, head);
|
list_add_tail(&al->node, head);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct annotation_line *
|
struct annotation_line *
|
||||||
|
@ -1301,7 +1301,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, FILE *file,
|
||||||
dl->ops.target.name = strdup(target.sym->name);
|
dl->ops.target.name = strdup(target.sym->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
disasm__add(¬es->src->source, dl);
|
annotation_line__add(&dl->al, ¬es->src->source);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue