diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-20 05:35:45 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-20 05:35:45 -0400 |
commit | d197fd5d743289e90c160c8c17460b390d862b98 (patch) | |
tree | 3d052e462e2864c87e650fb58f5f561885fde17b /tools | |
parent | c64550cfddfdbd7a6f9d5ffb37382a05d7f0306b (diff) |
perf hists: Don't consider filtered entries when calculating column widths
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-rf01wktu1e3f3az32nry86vu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/hist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 1f269fd48944..f6a993963a1e 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c | |||
@@ -725,7 +725,8 @@ void hists__output_recalc_col_len(struct hists *hists, int max_rows) | |||
725 | 725 | ||
726 | while (next && row++ < max_rows) { | 726 | while (next && row++ < max_rows) { |
727 | n = rb_entry(next, struct hist_entry, rb_node); | 727 | n = rb_entry(next, struct hist_entry, rb_node); |
728 | hists__calc_col_len(hists, n); | 728 | if (!n->filtered) |
729 | hists__calc_col_len(hists, n); | ||
729 | next = rb_next(&n->rb_node); | 730 | next = rb_next(&n->rb_node); |
730 | } | 731 | } |
731 | } | 732 | } |