]> git.baikalelectronics.ru Git - kernel.git/commit
perf diff: Don't use hack to skip column length calculation
authorJin Yao <yao.jin@linux.intel.com>
Thu, 7 Nov 2019 07:47:13 +0000 (15:47 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 7 Nov 2019 12:08:03 +0000 (09:08 -0300)
commit1463ae3fac84c542b00885f6adb2c94e7877832c
tree7892de5a8a6a469f13a0b5650434a4d094e6cfee
parenta0569756c4ffef63856eeca3a16789d711cea7e6
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>
tools/perf/builtin-diff.c
tools/perf/util/hist.c