|
for range numGPCounters { |
To determine if a fixed counter is available, should probably add in numGPCounters+1 events, instead of just numGPCounters
e.g. if there are 4 numGPCounters, we want to do
perf stat -e "event,event,event,event,event" to see if there's a fixed counter for event
Alternatively, maybe use rdmsr?
PerfSpect/cmd/metrics/metadata.go
Line 311 in 8661c5f
To determine if a fixed counter is available, should probably add in numGPCounters+1 events, instead of just numGPCounters
e.g. if there are 4 numGPCounters, we want to do
perf stat -e "event,event,event,event,event" to see if there's a fixed counter for event
Alternatively, maybe use
rdmsr?