aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorMartin Liška <mliska@suse.cz>2015-06-19 15:10:43 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-06-19 15:39:18 -0400
commit0c4a5bcea4609948375173cdea8d73783110a75e (patch)
tree3d34e9c1225a92194ff13a9896f9600874e48131 /tools/perf/util/annotate.h
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 <mliska@suse.cz> Cc: Andi Kleen <andi@firstfloor.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/5583E26D.1040407@suse.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index cadbdc90a5cb..c8c18cadcd17 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -72,7 +72,7 @@ struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disa
72int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw); 72int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw);
73size_t disasm__fprintf(struct list_head *head, FILE *fp); 73size_t disasm__fprintf(struct list_head *head, FILE *fp);
74double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, 74double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset,
75 s64 end, const char **path); 75 s64 end, const char **path, u64 *nr_samples);
76 76
77struct sym_hist { 77struct sym_hist {
78 u64 sum; 78 u64 sum;
@@ -82,6 +82,7 @@ struct sym_hist {
82struct source_line_percent { 82struct source_line_percent {
83 double percent; 83 double percent;
84 double percent_sum; 84 double percent_sum;
85 double samples;
85}; 86};
86 87
87struct source_line { 88struct source_line {