aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2018-03-15 15:33:56 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-03-20 16:19:28 +0000
commit16932d77050fb3d76bc265c21c53eeec14639d5e (patch)
tree44b67b0f6fe77e057130521e846cd804cd920f3e /tools/perf/util/annotate.h
parentperf annotate: Move nr_events from annotate_browser to annotation struct (diff)
downloadkernel-16932d77050fb3d76bc265c21c53eeec14639d5e.tar.gz
kernel-16932d77050fb3d76bc265c21c53eeec14639d5e.zip
perf annotate: Stop using a global config struct
For the TUI, that is interactive, its interesting to have a configuration that one can go on changing and then when moving from one symbol annotation to another symbol, the options set while browsing the first symbol to be kept. But since we're trying to make this code reusable by a --stdio formatter, we better have a pointer in struct annotation and in the TUI case set it to the global, but use something else for other cases, such as --stdio2. Cc: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Jin Yao <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 5d15cdf22fc9..5936605b5dac 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -164,6 +164,7 @@ struct annotated_source {
struct annotation {
pthread_mutex_t lock;
u64 max_coverage;
+ struct annotation_options *options;
struct annotation_line **offsets;
int nr_events;
bool have_cycles;