diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-27 11:19:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-27 11:19:48 +0000 |
| commit | 7928631a66c884b18f827fbd1b63cd80198f004b (patch) | |
| tree | 08c0c4b964a58fb461b42903dcadbb2fe22bb8dc /lib/mpi/mpi-cmp.c | |
| parent | perf header: Fix build on old systems (diff) | |
| download | kernel-7928631a66c884b18f827fbd1b63cd80198f004b.tar.gz kernel-7928631a66c884b18f827fbd1b63cd80198f004b.zip | |
perf hists: Fix recalculation of total_period when sorting entries
We were doing parts of it in hists__collapse_resort and parts of it in
hists__output_resort, leading to a bogus total_period.
Fix it by doing just the filtering operation when collapsing because
there we know that the Zoom operations adds filters just what is in
hists->entries, not to the new batch of entries being collapsed.
And move all the nr_entries + total_period recalculation to
hists__output_resort since we will traverse all entries anyway there.
Problem introduced when developing threaded addition of new batches
of hist_entries, i.e. post v3.1.
Reported-by: Frederic Weisbecker <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
