mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libpmc: add some AMD pmu counter aliases
Make it mostly compatible with what's defined for Intel. Except where
noted, these are defined for all of amdzen(1|2|3).
Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32162
(cherry picked from commit a20c10893e)
This commit is contained in:
parent
89f1b82a85
commit
3c01f74150
1 changed files with 13 additions and 0 deletions
|
|
@ -86,6 +86,19 @@ static struct pmu_alias pmu_intel_alias_table[] = {
|
|||
static struct pmu_alias pmu_amd_alias_table[] = {
|
||||
{"UNHALTED_CORE_CYCLES", "ls_not_halted_cyc"},
|
||||
{"UNHALTED-CORE-CYCLES", "ls_not_halted_cyc"},
|
||||
{"LLC_MISSES", "l3_comb_clstr_state.request_miss"},
|
||||
{"LLC-MISSES", "l3_comb_clstr_state.request_miss"},
|
||||
{"LLC_REFERENCE", "l3_request_g1.caching_l3_cache_accesses"},
|
||||
{"LLC-REFERENCE", "l3_request_g1.caching_l3_cache_accesses"},
|
||||
{"BRANCH_INSTRUCTION_RETIRED", "ex_ret_brn"},
|
||||
{"BRANCH-INSTRUCTION-RETIRED", "ex_ret_brn"},
|
||||
{"BRANCH_MISSES_RETIRED", "ex_ret_brn_misp"},
|
||||
{"BRANCH-MISSES-RETIRED", "ex_ret_brn_misp"},
|
||||
{"unhalted-cycles", "ls_not_halted_cyc"},
|
||||
{"instructions", "ex_ret_instr",},
|
||||
{"branch-mispredicts", "ex_ret_brn_misp"},
|
||||
{"branches", "ex_ret_brn"},
|
||||
{"interrupts", "ls_int_taken"}, /* Not on amdzen1 */
|
||||
{NULL, NULL},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue