aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r--tools/perf/util/hist.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 1614ad710046..c59224518083 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -239,7 +239,7 @@ void hists__output_resort(struct hists *self)
239 struct hist_entry *n; 239 struct hist_entry *n;
240 u64 min_callchain_hits; 240 u64 min_callchain_hits;
241 241
242 min_callchain_hits = self->stats.total * (callchain_param.min_percent / 100); 242 min_callchain_hits = self->stats.total_period * (callchain_param.min_percent / 100);
243 243
244 tmp = RB_ROOT; 244 tmp = RB_ROOT;
245 next = rb_first(&self->entries); 245 next = rb_first(&self->entries);
@@ -525,7 +525,7 @@ int hist_entry__snprintf(struct hist_entry *self, char *s, size_t size,
525 525
526 if (pair_hists) { 526 if (pair_hists) {
527 count = self->pair ? self->pair->count : 0; 527 count = self->pair ? self->pair->count : 0;
528 total = pair_hists->stats.total; 528 total = pair_hists->stats.total_period;
529 count_sys = self->pair ? self->pair->count_sys : 0; 529 count_sys = self->pair ? self->pair->count_sys : 0;
530 count_us = self->pair ? self->pair->count_us : 0; 530 count_us = self->pair ? self->pair->count_us : 0;
531 count_guest_sys = self->pair ? self->pair->count_guest_sys : 0; 531 count_guest_sys = self->pair ? self->pair->count_guest_sys : 0;
@@ -769,10 +769,10 @@ print_entries:
769 ++position; 769 ++position;
770 } 770 }
771 ret += hist_entry__fprintf(h, pair, show_displacement, 771 ret += hist_entry__fprintf(h, pair, show_displacement,
772 displacement, fp, self->stats.total); 772 displacement, fp, self->stats.total_period);
773 773
774 if (symbol_conf.use_callchain) 774 if (symbol_conf.use_callchain)
775 ret += hist_entry__fprintf_callchain(h, fp, self->stats.total); 775 ret += hist_entry__fprintf_callchain(h, fp, self->stats.total_period);
776 776
777 if (h->ms.map == NULL && verbose > 1) { 777 if (h->ms.map == NULL && verbose > 1) {
778 __map_groups__fprintf_maps(&h->thread->mg, 778 __map_groups__fprintf_maps(&h->thread->mg,
@@ -795,7 +795,7 @@ void hists__filter_by_dso(struct hists *self, const struct dso *dso)
795{ 795{
796 struct rb_node *nd; 796 struct rb_node *nd;
797 797
798 self->nr_entries = self->stats.total = 0; 798 self->nr_entries = self->stats.total_period = 0;
799 self->max_sym_namelen = 0; 799 self->max_sym_namelen = 0;
800 800
801 for (nd = rb_first(&self->entries); nd; nd = rb_next(nd)) { 801 for (nd = rb_first(&self->entries); nd; nd = rb_next(nd)) {
@@ -812,7 +812,7 @@ void hists__filter_by_dso(struct hists *self, const struct dso *dso)
812 h->filtered &= ~(1 << HIST_FILTER__DSO); 812 h->filtered &= ~(1 << HIST_FILTER__DSO);
813 if (!h->filtered) { 813 if (!h->filtered) {
814 ++self->nr_entries; 814 ++self->nr_entries;
815 self->stats.total += h->count; 815 self->stats.total_period += h->count;
816 if (h->ms.sym && 816 if (h->ms.sym &&
817 self->max_sym_namelen < h->ms.sym->namelen) 817 self->max_sym_namelen < h->ms.sym->namelen)
818 self->max_sym_namelen = h->ms.sym->namelen; 818 self->max_sym_namelen = h->ms.sym->namelen;
@@ -824,7 +824,7 @@ void hists__filter_by_thread(struct hists *self, const struct thread *thread)
824{ 824{
825 struct rb_node *nd; 825 struct rb_node *nd;
826 826
827 self->nr_entries = self->stats.total = 0; 827 self->nr_entries = self->stats.total_period = 0;
828 self->max_sym_namelen = 0; 828 self->max_sym_namelen = 0;
829 829
830 for (nd = rb_first(&self->entries); nd; nd = rb_next(nd)) { 830 for (nd = rb_first(&self->entries); nd; nd = rb_next(nd)) {
@@ -837,7 +837,7 @@ void hists__filter_by_thread(struct hists *self, const struct thread *thread)
837 h->filtered &= ~(1 << HIST_FILTER__THREAD); 837 h->filtered &= ~(1 << HIST_FILTER__THREAD);
838 if (!h->filtered) { 838 if (!h->filtered) {
839 ++self->nr_entries; 839 ++self->nr_entries;
840 self->stats.total += h->count; 840 self->stats.total_period += h->count;
841 if (h->ms.sym && 841 if (h->ms.sym &&
842 self->max_sym_namelen < h->ms.sym->namelen) 842 self->max_sym_namelen < h->ms.sym->namelen)
843 self->max_sym_namelen = h->ms.sym->namelen; 843 self->max_sym_namelen = h->ms.sym->namelen;
@@ -1031,8 +1031,8 @@ int hist_entry__annotate(struct hist_entry *self, struct list_head *head)
1031 1031
1032void hists__inc_nr_events(struct hists *self, u32 type) 1032void hists__inc_nr_events(struct hists *self, u32 type)
1033{ 1033{
1034 ++self->hists.stats.nr_events[0]; 1034 ++self->stats.nr_events[0];
1035 ++self->hists.stats.nr_events[type]; 1035 ++self->stats.nr_events[type];
1036} 1036}
1037 1037
1038size_t hists__fprintf_nr_events(struct hists *self, FILE *fp) 1038size_t hists__fprintf_nr_events(struct hists *self, FILE *fp)