diff options
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/top.c | 2 | ||||
-rw-r--r-- | tools/perf/util/top.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/top.c b/tools/perf/util/top.c index 75cfe4d45119..fcfb77762819 100644 --- a/tools/perf/util/top.c +++ b/tools/perf/util/top.c | |||
@@ -171,7 +171,7 @@ float perf_top__decay_samples(struct perf_top *top, struct rb_root *root) | |||
171 | { | 171 | { |
172 | struct sym_entry *syme, *n; | 172 | struct sym_entry *syme, *n; |
173 | float sum_ksamples = 0.0; | 173 | float sum_ksamples = 0.0; |
174 | int snap = !top->display_weighted ? top->sym_counter : 0, j; | 174 | int snap = !top->display_weighted ? top->sym_evsel->idx : 0, j; |
175 | 175 | ||
176 | /* Sort the active symbols */ | 176 | /* Sort the active symbols */ |
177 | pthread_mutex_lock(&top->active_symbols_lock); | 177 | pthread_mutex_lock(&top->active_symbols_lock); |
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h index 96d1cb78af01..96a78312c719 100644 --- a/tools/perf/util/top.h +++ b/tools/perf/util/top.h | |||
@@ -41,7 +41,7 @@ struct perf_top { | |||
41 | u64 exact_samples; | 41 | u64 exact_samples; |
42 | u64 guest_us_samples, guest_kernel_samples; | 42 | u64 guest_us_samples, guest_kernel_samples; |
43 | int print_entries, count_filter, delay_secs; | 43 | int print_entries, count_filter, delay_secs; |
44 | int display_weighted, freq, rb_entries, sym_counter; | 44 | int display_weighted, freq, rb_entries; |
45 | pid_t target_pid, target_tid; | 45 | pid_t target_pid, target_tid; |
46 | bool hide_kernel_symbols, hide_user_symbols, zero; | 46 | bool hide_kernel_symbols, hide_user_symbols, zero; |
47 | const char *cpu_list; | 47 | const char *cpu_list; |