diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-06-19 15:36:12 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-06-19 15:39:21 -0400 |
commit | 276af92f107fc35ede78c7cdea323aaec364002c (patch) | |
tree | 397dcfba0747377fb26f7e9c4ef3c6a72f7740b2 /tools/perf/util/annotate.h | |
parent | 0c4a5bcea4609948375173cdea8d73783110a75e (diff) |
perf annotate: Rename source_line_percent to source_line_samples
To better reflect the purpose of this struct, that is to hold
info about samples, its total number and is percentage.
Cc: Martin Liska <mliska@suse.cz>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-6bf8gwcl975uurl0ttpvtk69@git.kernel.org
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index c8c18cadcd17..7e78e6c27078 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -79,17 +79,17 @@ struct sym_hist { | |||
79 | u64 addr[0]; | 79 | u64 addr[0]; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | struct source_line_percent { | 82 | struct source_line_samples { |
83 | double percent; | 83 | double percent; |
84 | double percent_sum; | 84 | double percent_sum; |
85 | double samples; | 85 | double nr; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | struct source_line { | 88 | struct source_line { |
89 | struct rb_node node; | 89 | struct rb_node node; |
90 | char *path; | 90 | char *path; |
91 | int nr_pcnt; | 91 | int nr_pcnt; |
92 | struct source_line_percent p[1]; | 92 | struct source_line_samples samples[1]; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | /** struct annotated_source - symbols with hits have this attached as in sannotation | 95 | /** struct annotated_source - symbols with hits have this attached as in sannotation |