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>
if (err)
goto out_free_offsets;
- notes->options = &annotate_opts;
-
symbol__calc_percent(sym, evsel);
annotation__set_offsets(notes, size);
struct LOCKABLE annotation {
u64 start;
- struct annotation_options *options;
int nr_events;
int max_jump_sources;
struct {