diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-10 12:57:51 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-05-10 18:49:08 -0400 |
| commit | fefb0b94bbab858be0909a7eb5ef357e0f996a79 (patch) | |
| tree | db46b10241ad338db05e9ee68bb0ee45954d7b8a /tools/perf/builtin-report.c | |
| parent | 1c02c4d2e92f2097f1bba63ec71560b0e05a7f36 (diff) | |
perf hist: Calculate max_sym name len and nr_entries
Better done when we are adding entries, be it initially of when we're
re-sorting the histograms.
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
| -rw-r--r-- | tools/perf/builtin-report.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 53077fd973f0..d7c75291e788 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
| @@ -296,13 +296,13 @@ static int __cmd_report(void) | |||
| 296 | next = rb_first(&session->hists_tree); | 296 | next = rb_first(&session->hists_tree); |
| 297 | while (next) { | 297 | while (next) { |
| 298 | struct hists *hists; | 298 | struct hists *hists; |
| 299 | u64 nr_hists; | ||
| 300 | 299 | ||
| 301 | hists = rb_entry(next, struct hists, rb_node); | 300 | hists = rb_entry(next, struct hists, rb_node); |
| 302 | hists__collapse_resort(hists); | 301 | hists__collapse_resort(hists); |
| 303 | nr_hists = hists__output_resort(hists); | 302 | hists__output_resort(hists); |
| 304 | if (use_browser) | 303 | if (use_browser) |
| 305 | perf_session__browse_hists(&hists->entries, nr_hists, | 304 | perf_session__browse_hists(&hists->entries, |
| 305 | hists->nr_entries, | ||
| 306 | hists->stats.total, help, | 306 | hists->stats.total, help, |
| 307 | input_name); | 307 | input_name); |
| 308 | else { | 308 | else { |
