mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +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
@@ -162,7 +162,6 @@ static int perf_gtk__annotate_symbol(GtkWidget *window, struct map_symbol *ms,
|
||||
}
|
||||
|
||||
static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel,
|
||||
struct annotation_options *options,
|
||||
struct hist_browser_timer *hbt)
|
||||
{
|
||||
struct dso *dso = map__dso(ms->map);
|
||||
@@ -176,7 +175,7 @@ static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel,
|
||||
if (dso->annotate_warned)
|
||||
return -1;
|
||||
|
||||
err = symbol__annotate(ms, evsel, options, NULL);
|
||||
err = symbol__annotate(ms, evsel, NULL);
|
||||
if (err) {
|
||||
char msg[BUFSIZ];
|
||||
dso->annotate_warned = true;
|
||||
@@ -244,10 +243,9 @@ static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel,
|
||||
|
||||
int hist_entry__gtk_annotate(struct hist_entry *he,
|
||||
struct evsel *evsel,
|
||||
struct annotation_options *options,
|
||||
struct hist_browser_timer *hbt)
|
||||
{
|
||||
return symbol__gtk_annotate(&he->ms, evsel, options, hbt);
|
||||
return symbol__gtk_annotate(&he->ms, evsel, hbt);
|
||||
}
|
||||
|
||||
void perf_gtk__show_annotations(void)
|
||||
|
||||
Reference in New Issue
Block a user