]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: perf: map generic branches to correct hardware condition
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Mon, 17 Dec 2018 09:54:23 +0000 (12:54 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 17 Jan 2019 22:38:00 +0000 (14:38 -0800)
commit48369297e10426e6d66044542a0890a1dc621d0e
tree106b88f03954da9ecd02dc1e9969b07c3afa2662
parenta91a0c17b72d5580d3f7c2c46c424edaec78772e
ARC: perf: map generic branches to correct hardware condition

So far we've mapped branches to "ijmp" which also counts conditional
branches NOT taken. This makes us different from other architectures
such as ARM which seem to be counting only taken branches.

So use "ijmptak" hardware condition which only counts (all jump
instructions that are taken)

'ijmptak' event is available on both ARCompact and ARCv2 ISA based
cores.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Cc: stable@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: reworked changelog]
arch/arc/include/asm/perf_event.h