[llvm-exegesis] Fix pfm counter names for Haswell for older versions of libpfm

The inconsistency caused uops mode to fail on an older version of libpfm
since the dispatched_port was added as an alias for executed_port only
after v4.6.0 of libpfm.

Differential revision: https://reviews.llvm.org/D71665
This commit is contained in:
Miloš Stojanović 2019-12-19 12:52:15 +01:00
parent c5c935ab66
commit d005df4c16
1 changed files with 8 additions and 8 deletions

View File

@ -81,14 +81,14 @@ def HaswellPfmCounters : ProcPfmCounters {
let CycleCounter = UnhaltedCoreCyclesPfmCounter; let CycleCounter = UnhaltedCoreCyclesPfmCounter;
let UopsCounter = UopsIssuedPfmCounter; let UopsCounter = UopsIssuedPfmCounter;
let IssueCounters = [ let IssueCounters = [
PfmIssueCounter<"HWPort0", "uops_dispatched_port:port_0">, PfmIssueCounter<"HWPort0", "uops_executed_port:port_0">,
PfmIssueCounter<"HWPort1", "uops_dispatched_port:port_1">, PfmIssueCounter<"HWPort1", "uops_executed_port:port_1">,
PfmIssueCounter<"HWPort2", "uops_dispatched_port:port_2">, PfmIssueCounter<"HWPort2", "uops_executed_port:port_2">,
PfmIssueCounter<"HWPort3", "uops_dispatched_port:port_3">, PfmIssueCounter<"HWPort3", "uops_executed_port:port_3">,
PfmIssueCounter<"HWPort4", "uops_dispatched_port:port_4">, PfmIssueCounter<"HWPort4", "uops_executed_port:port_4">,
PfmIssueCounter<"HWPort5", "uops_dispatched_port:port_5">, PfmIssueCounter<"HWPort5", "uops_executed_port:port_5">,
PfmIssueCounter<"HWPort6", "uops_dispatched_port:port_6">, PfmIssueCounter<"HWPort6", "uops_executed_port:port_6">,
PfmIssueCounter<"HWPort7", "uops_dispatched_port:port_7"> PfmIssueCounter<"HWPort7", "uops_executed_port:port_7">
]; ];
} }
def : PfmCountersBinding<"haswell", HaswellPfmCounters>; def : PfmCountersBinding<"haswell", HaswellPfmCounters>;