perf top: Remove redundant perf_top->sym_counter
We can get that counter index from perf_top->sym_evsel->idx instead. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -171,7 +171,7 @@ float perf_top__decay_samples(struct perf_top *top, struct rb_root *root)
|
||||
{
|
||||
struct sym_entry *syme, *n;
|
||||
float sum_ksamples = 0.0;
|
||||
int snap = !top->display_weighted ? top->sym_counter : 0, j;
|
||||
int snap = !top->display_weighted ? top->sym_evsel->idx : 0, j;
|
||||
|
||||
/* Sort the active symbols */
|
||||
pthread_mutex_lock(&top->active_symbols_lock);
|
||||
|
Reference in New Issue
Block a user