mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 12:32:50 +00:00
perf annotate: Use global annotation_options
Now it can directly use the global options and no need to pass it as an argument. Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20231128175441.721579-5-namhyung@kernel.org [ Fixup build with GTK2=1 ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
c9a21a872c
commit
41fd3cacd2
@@ -114,7 +114,7 @@ static void annotate_browser__write(struct ui_browser *browser, void *entry, int
|
||||
if (!browser->navkeypressed)
|
||||
ops.width += 1;
|
||||
|
||||
annotation_line__write(al, notes, &ops, ab->opts);
|
||||
annotation_line__write(al, notes, &ops);
|
||||
|
||||
if (ops.current_entry)
|
||||
ab->selection = al;
|
||||
@@ -884,7 +884,7 @@ show_sup_ins:
|
||||
continue;
|
||||
}
|
||||
case 'P':
|
||||
map_symbol__annotation_dump(ms, evsel, browser->opts);
|
||||
map_symbol__annotation_dump(ms, evsel);
|
||||
continue;
|
||||
case 't':
|
||||
if (symbol_conf.show_total_period) {
|
||||
@@ -979,7 +979,7 @@ int symbol__tui_annotate(struct map_symbol *ms, struct evsel *evsel,
|
||||
return -1;
|
||||
|
||||
if (not_annotated) {
|
||||
err = symbol__annotate2(ms, evsel, opts, &browser.arch);
|
||||
err = symbol__annotate2(ms, evsel, &browser.arch);
|
||||
if (err) {
|
||||
char msg[BUFSIZ];
|
||||
dso->annotate_warned = true;
|
||||
|
||||
Reference in New Issue
Block a user