path: root/tools/perf/util/top.h
diff options
authorWaiman Long <>2013-10-18 10:38:49 -0400
committerArnaldo Carvalho de Melo <>2013-10-21 17:36:25 -0300
commit5dbb6e81d85e55ee2b4cf523c1738e16f63e5400 (patch)
tree334d7cd3884dde1e7f9d35e0be561f82edc92ccf /tools/perf/util/top.h
parent91e95617429cb272fd908b1928a1915b37b9655f (diff)
perf top: Add --max-stack option to limit callchain stack scan
When the callgraph function is enabled (-G), it may take a long time to scan all the stack data and merge them accordingly. This patch adds a new --max-stack option to perf-top to limit the depth of callchain stack data to look at to reduce the time it takes for perf-top to finish its processing. It reduces the amount of information provided to the user in exchange for faster speed. Signed-off-by: Waiman Long <> Acked-by: David Ahern <> Tested-by: Davidlohr Bueso <> Cc: Adrian Hunter <> Cc: Aswin Chandramouleeswaran <> Cc: David Ahern <> Cc: Ingo Molnar <> Cc: Jiri Olsa <> Cc: Namhyung Kim <> Cc: Paul Mackerras <> Cc: Peter Zijlstra <> Cc: Scott J Norton <> Cc: Stephane Eranian <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/util/top.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h
index b554ffc462b6..88cfeaff600b 100644
--- a/tools/perf/util/top.h
+++ b/tools/perf/util/top.h
@@ -24,6 +24,7 @@ struct perf_top {
u64 exact_samples;
u64 guest_us_samples, guest_kernel_samples;
int print_entries, count_filter, delay_secs;
+ int max_stack;
bool hide_kernel_symbols, hide_user_symbols, zero;
bool use_tui, use_stdio;
bool kptr_restrict_warned;