diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-15 18:46:22 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-20 16:19:29 +0000 |
| commit | 0ca693b315aa6893c9d3552fa6a5d536c38b6c4a (patch) | |
| tree | 9b32edfa0446ed7d598f3c7a393049bfe68c4390 /tools/perf/ui/browsers/annotate.c | |
| parent | perf annotate: Nuke struct browser_line (diff) | |
| download | kernel-0ca693b315aa6893c9d3552fa6a5d536c38b6c4a.tar.gz kernel-0ca693b315aa6893c9d3552fa6a5d536c38b6c4a.zip | |
perf annotate: Move 'start' to struct annotation
Another field that is not TUI specific.
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
| -rw-r--r-- | tools/perf/ui/browsers/annotate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 50f8e671644f..7ec441f93f7e 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c @@ -35,7 +35,6 @@ struct annotate_browser { struct rb_node *curr_hot; struct annotation_line *selection; struct arch *arch; - u64 start; int nr_asm_entries; int nr_entries; bool searching_backwards; @@ -208,7 +207,7 @@ static void annotate_browser__write(struct ui_browser *browser, void *entry, int int color = -1; if (!notes->options->use_offset) - addr += ab->start; + addr += notes->start; if (!notes->options->use_offset) { printed = scnprintf(bf, sizeof(bf), "%" PRIx64 ": ", addr); @@ -991,7 +990,7 @@ int symbol__tui_annotate(struct symbol *sym, struct map *map, ui_helpline__push("Press ESC to exit"); - browser.start = map__rip_2objdump(map, sym->start); + notes->start = map__rip_2objdump(map, sym->start); list_for_each_entry(al, ¬es->src->source, node) { size_t line_len = strlen(al->line); |
