Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.
1739 Discussions

what is the rule for creating the raw encoding of a perfmon event with 2 event selectors

rg125
Beginner
159 Views

I have a sapphire rapids server. I'm interested is monitoring the perfmon event OCR.HWPF_L1D.ANY_RESPONSE. The associated information is

EventSel={2AH,2BH} UMask=01H MSR_OFFCORE_RSPx{1A6H,1A7H}=10400H

If this had 1 event selector the raw encoding would be "r", followed by the Umask followed by the EventSelector. But this event shows 2 event selectors, {2AH,2BH}. perf doesn't recognize  OCR.HWPF_L1D.ANY_RESPONSE  as a valid event, as seen below:

perf stat -e OCR.HWPF_L1D.ANY_RESPONSE  sleep 1

event syntax error: 'OCR.HWPF_L1D.ANY_RESPONSE'

                     \___ parser error

Run 'perf list' for a list of valid events

Thus I need the raw encoding. What would it be?

0 Kudos
0 Replies
Reply