perf annotate: Add evsel into struct annotation_line_args
Add evsel into struct annotate_args to reduce the number of arguments that need to travel all the way to line allocation. This change also allow us to move the arch name initialization under symbol__annotate function. Link: http://lkml.kernel.org/n/tip-a9ok53rrgt1s5e8uglyvy6qt@git.kernel.org 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-11-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
4748834f96
commit
d03a686ea6
@@ -1120,7 +1120,7 @@ int symbol__tui_annotate(struct symbol *sym, struct map *map,
|
||||
(nr_pcnt - 1);
|
||||
}
|
||||
|
||||
err = symbol__annotate(sym, map, perf_evsel__env_arch(evsel),
|
||||
err = symbol__annotate(sym, map, evsel,
|
||||
sizeof_bdl, &browser.arch,
|
||||
perf_evsel__env_cpuid(evsel));
|
||||
if (err) {
|
||||
|
@@ -169,8 +169,7 @@ static int symbol__gtk_annotate(struct symbol *sym, struct map *map,
|
||||
if (map->dso->annotate_warned)
|
||||
return -1;
|
||||
|
||||
err = symbol__annotate(sym, map, perf_evsel__env_arch(evsel),
|
||||
0, NULL, NULL);
|
||||
err = symbol__annotate(sym, map, evsel, 0, NULL, NULL);
|
||||
if (err) {
|
||||
char msg[BUFSIZ];
|
||||
symbol__strerror_disassemble(sym, map, err, msg, sizeof(msg));
|
||||
|
Reference in New Issue
Block a user