aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2023-11-03 19:19:07 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-11-09 16:49:33 +0000
commitb753d48f53f9dcea655d359f028c8adfdd9504b5 (patch)
tree283debb3fe30132a6b43fa4a94b38035a4d492a7 /tools/perf/util/annotate.h
parentperf annotate: Move some source code related fields from 'struct annotation' ... (diff)
downloadkernel-b753d48f53f9dcea655d359f028c8adfdd9504b5.tar.gz
kernel-b753d48f53f9dcea655d359f028c8adfdd9504b5.zip
perf annotate: Move offsets array from 'struct annotation' to 'struct annotated_source'
The offsets array keeps pointers to 'struct annotation_line' entries which are available in the 'struct annotated_source'. Let's move it to there. Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Christophe JAILLET <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 9eb7b6d3fe95..de59c1aff08e 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -271,6 +271,7 @@ struct annotated_source {
struct list_head source;
size_t sizeof_sym_hist;
struct sym_hist *histograms;
+ struct annotation_line **offsets;
int nr_histograms;
int nr_entries;
int nr_asm_entries;
@@ -289,7 +290,6 @@ struct annotated_branch {
struct LOCKABLE annotation {
u64 start;
struct annotation_options *options;
- struct annotation_line **offsets;
int nr_events;
int max_jump_sources;
struct {