]> git.baikalelectronics.ru Git - kernel.git/commit
perf sort: Fix segfault with basic block 'cycles' sort dimension
authorChangbin Du <changbin.du@intel.com>
Mon, 13 Mar 2017 08:31:48 +0000 (16:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 13 Mar 2017 14:41:20 +0000 (11:41 -0300)
commit869761f109f8fc8fe7cc1cfba42f218444ed6a42
treea8180bc7290f55bde9cf81d7e24b94d7e32809e7
parent31957566c8c842903b4c0f69fc24c9359c43a923
perf sort: Fix segfault with basic block 'cycles' sort dimension

Skip the sample which doesn't have branch_info to avoid segmentation
fault:

The fault can be reproduced by:

  perf record -a
  perf report -F cycles

Signed-off-by: Changbin Du <changbin.du@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: bd1dad58b002 ("perf tools: Add support for cycles, weight branch_info field")
Link: http://lkml.kernel.org/r/20170313083148.23568-1-changbin.du@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c