diff options
author | Jiri Olsa <jolsa@kernel.org> | 2018-11-21 11:16:11 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-11-22 09:45:09 +0100 |
commit | 67266c1080ad56c31af72b9c18355fde8ccc124a (patch) | |
tree | b879fbefb9d5f0daab31cb3fdd770039bf1342b9 /tools | |
parent | perf/x86/intel: Move branch tracing setup to the Intel-specific source file (diff) | |
download | linux-dev-67266c1080ad56c31af72b9c18355fde8ccc124a.tar.xz linux-dev-67266c1080ad56c31af72b9c18355fde8ccc124a.zip |
perf/x86/intel: Add generic branch tracing check to intel_pmu_has_bts()
Currently we check the branch tracing only by checking for the
PERF_COUNT_HW_BRANCH_INSTRUCTIONS event of PERF_TYPE_HARDWARE
type. But we can define the same event with the PERF_TYPE_RAW
type.
Changing the intel_pmu_has_bts() code to check on event's final
hw config value, so both HW types are covered.
Adding unlikely to intel_pmu_has_bts() condition calls, because
it was used in the original code in intel_bts_constraints.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: <stable@vger.kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/20181121101612.16272-2-jolsa@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions