path: root/tools/perf/builtin-annotate.c
diff options
authorMartin Liška <>2015-06-19 16:10:43 -0300
committerArnaldo Carvalho de Melo <>2015-06-19 16:39:18 -0300
commit0c4a5bcea4609948375173cdea8d73783110a75e (patch)
tree3d34e9c1225a92194ff13a9896f9600874e48131 /tools/perf/builtin-annotate.c
parenta5499b37197ab4b5fed101370df7ccadacbb4340 (diff)
perf annotate: Display total number of samples with --show-total-period
To compare two records on an instruction base, with --show-total-period option provided, display total number of samples that belong to a line in assembly language. New hot key 't' is introduced for 'perf annotate' TUI. Signed-off-by: Martin Liska <> Cc: Andi Kleen <> Cc: Peter Zijlstra <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 4e08c2d2090e..2c1bec39c30e 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -329,6 +329,8 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
"objdump binary to use for disassembly and annotations"),
OPT_BOOLEAN(0, "group", &symbol_conf.event_group,
"Show event group information together"),
+ OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period,
+ "Show a column with the sum of periods"),
int ret = hists__init();