diff options
author | Jin Yao <yao.jin@linux.intel.com> | 2019-11-07 15:47:13 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-11-07 09:08:03 -0300 |
commit | 0bdf181fe0e5b6f6d5764ff482d7ae4707f8986b (patch) | |
tree | 7892de5a8a6a469f13a0b5650434a4d094e6cfee /tools/perf/util/hist.c | |
parent | af8490eb2b33684e26a0a927a9d93ae43cd08890 (diff) | |
download | linux-stable-0bdf181fe0e5b6f6d5764ff482d7ae4707f8986b.tar.gz linux-stable-0bdf181fe0e5b6f6d5764ff482d7ae4707f8986b.tar.bz2 linux-stable-0bdf181fe0e5b6f6d5764ff482d7ae4707f8986b.zip |
perf diff: Don't use hack to skip column length calculation
Previously we use a nasty hack to skip the hists__calc_col_len for block
since this function is not very suitable for block column length
calculation.
This patch removes the hack code and add a check at the entry of
hists__calc_col_len to skip for block case.
Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191107074719.26139-2-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r-- | tools/perf/util/hist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 679a1d75090c..daa6eef4fde0 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -80,6 +80,8 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h) int symlen; u16 len; + if (h->block_info) + return; /* * +4 accounts for '[x] ' priv level info * +2 accounts for 0x prefix on raw addresses |