]> git.itanic.dy.fi Git - linux-stable/commit
perf annotate: Split branch stack cycles info from 'struct annotation'
authorNamhyung Kim <namhyung@kernel.org>
Fri, 3 Nov 2023 19:19:04 +0000 (12:19 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 9 Nov 2023 16:49:33 +0000 (13:49 -0300)
commitb7f87e32590bf48eca84f729d3422be7b8dc22d3
treed7d794499a6f7e81d35775313102381ef2a480f9
parentde2c7eb59c342d1a61124caaf2993e325a9becb7
perf annotate: Split branch stack cycles info from 'struct annotation'

The cycles info is only meaningful when sample has branch stacks.  To
save the memory for normal cases, move those fields to a new 'struct
annotated_branch' and dynamically allocate it when needed.  Also move
cycles_hist from annotated_source as it's related here.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: Ian Rogers <irogers@google.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/20231103191907.54531-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h
tools/perf/util/block-info.c
tools/perf/util/sort.c