Fix event table for Cortex A9.

Removed events 0x8 (INSTR_EXECUTED), 0xE (PC_PROC_RETURN) and
0x13-0x1d not supported on Cortex A9.
Add events 0x68 and 0x6E which replaced 0x8 and 0xE.

Submitted by: Michal Mazur <mkm@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield, Netgate
Differential revision: https://reviews.freebsd.org/D10911
This commit is contained in:
Zbigniew Bodek 2017-06-13 18:52:39 +00:00
parent ab632d9651
commit 95ca4f5a0e

View File

@ -5624,7 +5624,7 @@ __PMC_EV_ALIAS("IMPC_C0H_TRK_REQUEST.ALL", UCP_EVENT_84H_01H)
#define PMC_EV_ARMV7_FIRST PMC_EV_ARMV7_EVENT_00H
#define PMC_EV_ARMV7_LAST PMC_EV_ARMV7_EVENT_FFH
#define __PMC_EV_ALIAS_ARMV7_COMMON_A8() \
#define __PMC_EV_ALIAS_ARMV7_COMMON() \
__PMC_EV_ALIAS("PMNC_SW_INCR", ARMV7_EVENT_00H) \
__PMC_EV_ALIAS("L1_ICACHE_REFILL", ARMV7_EVENT_01H) \
__PMC_EV_ALIAS("ITLB_REFILL", ARMV7_EVENT_02H) \
@ -5633,20 +5633,20 @@ __PMC_EV_ALIAS("IMPC_C0H_TRK_REQUEST.ALL", UCP_EVENT_84H_01H)
__PMC_EV_ALIAS("DTLB_REFILL", ARMV7_EVENT_05H) \
__PMC_EV_ALIAS("MEM_READ", ARMV7_EVENT_06H) \
__PMC_EV_ALIAS("MEM_WRITE", ARMV7_EVENT_07H) \
__PMC_EV_ALIAS("INSTR_EXECUTED", ARMV7_EVENT_08H) \
__PMC_EV_ALIAS("EXC_TAKEN", ARMV7_EVENT_09H) \
__PMC_EV_ALIAS("EXC_EXECUTED", ARMV7_EVENT_0AH) \
__PMC_EV_ALIAS("CID_WRITE", ARMV7_EVENT_0BH) \
__PMC_EV_ALIAS("PC_WRITE", ARMV7_EVENT_0CH) \
__PMC_EV_ALIAS("PC_IMM_BRANCH", ARMV7_EVENT_0DH) \
__PMC_EV_ALIAS("PC_PROC_RETURN", ARMV7_EVENT_0EH) \
__PMC_EV_ALIAS("MEM_UNALIGNED_ACCESS", ARMV7_EVENT_0FH) \
__PMC_EV_ALIAS("PC_BRANCH_MIS_PRED", ARMV7_EVENT_10H) \
__PMC_EV_ALIAS("CLOCK_CYCLES", ARMV7_EVENT_11H) \
__PMC_EV_ALIAS("PC_BRANCH_PRED", ARMV7_EVENT_12H)
#define __PMC_EV_ALIAS_ARMV7_COMMON() \
__PMC_EV_ALIAS_ARMV7_COMMON_A8() \
#define __PMC_EV_ALIAS_ARMV7_COMMON_A8() \
__PMC_EV_ALIAS_ARMV7_COMMON() \
__PMC_EV_ALIAS("INSTR_EXECUTED", ARMV7_EVENT_08H) \
__PMC_EV_ALIAS("PC_PROC_RETURN", ARMV7_EVENT_0EH) \
__PMC_EV_ALIAS("MEM_ACCESS", ARMV7_EVENT_13H) \
__PMC_EV_ALIAS("L1_ICACHE_ACCESS", ARMV7_EVENT_14H) \
__PMC_EV_ALIAS("L1_DCACHE_WB", ARMV7_EVENT_15H) \
@ -5710,6 +5710,8 @@ __PMC_EV_ALIAS("IMPC_C0H_TRK_REQUEST.ALL", UCP_EVENT_84H_01H)
__PMC_EV_ALIAS("DATA_EVICTION", ARMV7_EVENT_65H) \
__PMC_EV_ALIAS("ISSUE_DNOT_DISPATCH_ANY_INSTR", ARMV7_EVENT_66H) \
__PMC_EV_ALIAS("ISSUE_IS_EMPTY", ARMV7_EVENT_67H) \
__PMC_EV_ALIAS("INSTR_RENAMED", ARMV7_EVENT_68H) \
__PMC_EV_ALIAS("PREDICTABLE_FUNCTION_RETURN", ARMV7_EVENT_6EH) \
__PMC_EV_ALIAS("MAIN_EXECUTION_UNIT_PIPE", ARMV7_EVENT_70H) \
__PMC_EV_ALIAS("SECOND_EXECUTION_UNIT_PIPE", ARMV7_EVENT_71H) \
__PMC_EV_ALIAS("LOAD_STORE_PIPE", ARMV7_EVENT_72H) \