summaryrefslogtreecommitdiff
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2023-11-28 09:54:41 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-12-07 17:18:50 -0300
commit327f7533cc596427b62f431c8852951412b6c0dc (patch)
treedf755226e7f9576a52ea6c9cec173a2fa4b63403 /tools/perf/util/annotate.c
parent2fa21d694c63081f26444847c916e5fc83bcefa1 (diff)
perf annotate: Get rid of local annotation options
It doesn't need the option in the struct annotation which is allocated for each symbol. It can directly use the global options and save 8 bytes per symbol. 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-9-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r--tools/perf/util/annotate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 09c399ab0384..c81fa0791918 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -3333,8 +3333,6 @@ int symbol__annotate2(struct map_symbol *ms, struct evsel *evsel,
if (err)
goto out_free_offsets;
- notes->options = &annotate_opts;
-
symbol__calc_percent(sym, evsel);
annotation__set_offsets(notes, size);