diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 15:38:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 15:38:11 -0500 |
commit | 54a0f91301950af3d6ae2ff2bf710c9c68a9bfea (patch) | |
tree | ffcdf0b916f9c5f805cab347e53b60be17c9aead /tools/perf/util/hist.c | |
parent | 94956eed14b4b16d401c8ad36d68df0608f968cb (diff) | |
parent | f9e3d4b1a9c86217655997d3ef109b1eaae967bc (diff) |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf top: Fix live annotation in the --stdio interface
perf top tui: Don't recalc column widths considering just the first page
perf report: Add progress bar when processing time ordered events
perf hists browser: Warn about lost events
perf tools: Fix a typo of command name as trace-cmd
perf hists: Fix recalculation of total_period when sorting entries
perf header: Fix build on old systems
perf ui browser: Handle K_RESIZE in dialog windows
perf ui browser: No need to switch char sets that often
perf hists browser: Use K_TIMER
perf ui: Rename ui__warning_paranoid to ui__error_paranoid
perf ui: Reimplement the popup windows using libslang
perf ui: Reimplement ui__popup_menu using ui__browser
perf ui: Reimplement ui_helpline using libslang
perf ui: Improve handling sigwinch a bit
perf ui progress: Reimplement using slang
perf evlist: Fix grouping of multiple events
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r-- | tools/perf/util/hist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index f6a993963a1e..a36a3fa81ffb 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -365,7 +365,6 @@ static void __hists__collapse_resort(struct hists *hists, bool threaded) | |||
365 | 365 | ||
366 | root = hists__get_rotate_entries_in(hists); | 366 | root = hists__get_rotate_entries_in(hists); |
367 | next = rb_first(root); | 367 | next = rb_first(root); |
368 | hists->stats.total_period = 0; | ||
369 | 368 | ||
370 | while (next) { | 369 | while (next) { |
371 | n = rb_entry(next, struct hist_entry, rb_node_in); | 370 | n = rb_entry(next, struct hist_entry, rb_node_in); |
@@ -379,7 +378,6 @@ static void __hists__collapse_resort(struct hists *hists, bool threaded) | |||
379 | * been set by, say, the hist_browser. | 378 | * been set by, say, the hist_browser. |
380 | */ | 379 | */ |
381 | hists__apply_filters(hists, n); | 380 | hists__apply_filters(hists, n); |
382 | hists__inc_nr_entries(hists, n); | ||
383 | } | 381 | } |
384 | } | 382 | } |
385 | } | 383 | } |
@@ -442,6 +440,7 @@ static void __hists__output_resort(struct hists *hists, bool threaded) | |||
442 | hists->entries = RB_ROOT; | 440 | hists->entries = RB_ROOT; |
443 | 441 | ||
444 | hists->nr_entries = 0; | 442 | hists->nr_entries = 0; |
443 | hists->stats.total_period = 0; | ||
445 | hists__reset_col_len(hists); | 444 | hists__reset_col_len(hists); |
446 | 445 | ||
447 | while (next) { | 446 | while (next) { |