Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Namhyung Kim and committed by
Arnaldo Carvalho de Melo
327f7533 2fa21d69

-3
-2
tools/perf/util/annotate.c
··· 3333 3333 if (err) 3334 3334 goto out_free_offsets; 3335 3335 3336 - notes->options = &annotate_opts; 3337 - 3338 3336 symbol__calc_percent(sym, evsel); 3339 3337 3340 3338 annotation__set_offsets(notes, size);
-1
tools/perf/util/annotate.h
··· 294 294 295 295 struct LOCKABLE annotation { 296 296 u64 start; 297 - struct annotation_options *options; 298 297 int nr_events; 299 298 int max_jump_sources; 300 299 struct {