diff options
author | Ray Kinsella <mdr@ashroe.eu> | 2021-01-21 18:25:26 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-03-31 15:06:30 +0000 |
commit | 7b9b19d7bb6d72bf56ab8f1e0c2f35b15f79b983 (patch) | |
tree | d500cb263396f206f163947a7db5a2be5c510d6b /src/plugins/perfmon/intel/core.h | |
parent | ed7c62a3048f8a976803ba91612e99a49ed0342e (diff) |
perfmon: add branch mispredictions
Add branches, branches taken (a meteric for branchy code), and branch
misses.
Type: improvement
Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
Change-Id: If92d4aaf9d0a6e3b99b8c19e6311cc08ca470590
Diffstat (limited to 'src/plugins/perfmon/intel/core.h')
-rw-r--r-- | src/plugins/perfmon/intel/core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/perfmon/intel/core.h b/src/plugins/perfmon/intel/core.h index d7fd9e03538..01945d2c023 100644 --- a/src/plugins/perfmon/intel/core.h +++ b/src/plugins/perfmon/intel/core.h @@ -99,6 +99,12 @@ "Number of instructions retired. General Counter - architectural event") \ _ (0xC2, 0x02, 0, 0, 0, 0x00, UOPS_RETIRED, RETIRE_SLOTS, \ "Retirement slots used.") \ + _ (0xC4, 0x00, 0, 0, 0, 0x00, BR_INST_RETIRED, ALL_BRANCHES, \ + "Counts all (macro) branch instructions retired.") \ + _ (0xC5, 0x00, 0, 0, 0, 0x00, BR_MISP_RETIRED, ALL_BRANCHES, \ + "All mispredicted macro branch instructions retired.") \ + _ (0xC4, 0x20, 0, 0, 0, 0x00, BR_INST_RETIRED, NEAR_TAKEN, \ + "Taken branch instructions retired.") \ _ (0xD0, 0x81, 0, 0, 0, 0x00, MEM_INST_RETIRED, ALL_LOADS, \ "All retired load instructions.") \ _ (0xD0, 0x82, 0, 0, 0, 0x00, MEM_INST_RETIRED, ALL_STORES, \ |