perf intel-pt: Always set no branch for dummy event
authorKan Liang <[email protected]>
Fri, 30 Jun 2017 14:16:56 +0000 (10:16 -0400)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 20 Jul 2017 12:55:51 +0000 (09:55 -0300)
commit91a8c5b840f2da31280e14b6268761cf14033756
treef7386349f910fd48671f8d0bb82435244e13b2de
parent69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269
perf intel-pt: Always set no branch for dummy event

An earlier kernel patch allowed enabling PT and LBR at the same time on
Goldmont.

commit ccbebba4c6bf ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity
if the core supports it")

However, users still cannot use Intel PT and LBRs simultaneously.  $
sudo perf record -e cycles,intel_pt//u -b  -- sleep 1 Error: PMU
Hardware doesn't support sampling/overflow-interrupts.

PT implicitly adds dummy event in perf tool. dummy event is software
event which doesn't support LBR.

Always setting no branch for dummy event in Intel PT.

Signed-off-by: Kan Liang <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/arch/x86/util/intel-pt.c