|
@@ -1862,6 +1862,7 @@ int symbol__annotate(struct symbol *sym, struct map *map,
|
|
|
struct annotation_options *options,
|
|
struct annotation_options *options,
|
|
|
struct arch **parch)
|
|
struct arch **parch)
|
|
|
{
|
|
{
|
|
|
|
|
+ struct annotation *notes = symbol__annotation(sym);
|
|
|
struct annotate_args args = {
|
|
struct annotate_args args = {
|
|
|
.privsize = privsize,
|
|
.privsize = privsize,
|
|
|
.evsel = evsel,
|
|
.evsel = evsel,
|
|
@@ -1892,6 +1893,7 @@ int symbol__annotate(struct symbol *sym, struct map *map,
|
|
|
|
|
|
|
|
args.ms.map = map;
|
|
args.ms.map = map;
|
|
|
args.ms.sym = sym;
|
|
args.ms.sym = sym;
|
|
|
|
|
+ notes->start = map__rip_2objdump(map, sym->start);
|
|
|
|
|
|
|
|
return symbol__disassemble(sym, &args);
|
|
return symbol__disassemble(sym, &args);
|
|
|
}
|
|
}
|
|
@@ -2746,8 +2748,6 @@ int symbol__annotate2(struct symbol *sym, struct map *map, struct perf_evsel *ev
|
|
|
|
|
|
|
|
symbol__calc_percent(sym, evsel);
|
|
symbol__calc_percent(sym, evsel);
|
|
|
|
|
|
|
|
- notes->start = map__rip_2objdump(map, sym->start);
|
|
|
|
|
-
|
|
|
|
|
annotation__set_offsets(notes, size);
|
|
annotation__set_offsets(notes, size);
|
|
|
annotation__mark_jump_targets(notes, sym);
|
|
annotation__mark_jump_targets(notes, sym);
|
|
|
annotation__compute_ipc(notes, size);
|
|
annotation__compute_ipc(notes, size);
|