Uncore events show "event syntax error" in ‘perf stat’ output on several recent AMD EPYC processors
Issue
- Uncore events produce an "event syntax error" in the output of the perf stat command on AMD EPYC 7003, 8004, 9004, and 9005 Series processors.
- Uncore events in Red Hat Enterprise Linux (RHEL) measure the functions of a processor that are outside of a process core but within the CPU package.
- This issue is seen when running the
profiler_hardware_uncore test(part of theredhat-certification-hardwarecertification suite) on any system with CPU(s) from these processor families.
Examples:
perf stat -e amd_df/event=0..0x3fff,umask=0..0xfff/modifier -o hwcert-perf.log --append -x';' -a -- sleep 1
stderr:
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ Bad event or PMU
Unable to find PMU or event on a PMU of 'amd_df'
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ expected numeric value
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ expected numeric value
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
returned:
129
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ Bad event or PMU
Unable to find PMU or event on a PMU of 'amd_df'
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ expected numeric value
event syntax error: 'amd_df/event=0..0x3fff,umask=0..0xfff/modifier'
\___ expected numeric value
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
perf stat -e amd_iommu/devid=0..0xffff,devid_mask=0..0xffff,pasid_mask=0..0xfffff,.../modifier[Raw -o hwcert-perf.log --append -x';' -a -- sleep 1
-----------------------------------------------------------------------------
perf stat -e amd_iommu/devid=0..0xffff,devid_mask=0..0xffff,pasid_mask=0..0xfffff,.../modifier[Raw -o hwcert-perf.log --append -x';' -a -- sleep 1
stderr:
event syntax error: '...0xfffff,.../modifier[Raw'
\___ Unrecognized input
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
returned:
129
event syntax error: '...0xfffff,.../modifier[Raw'
\___ Unrecognized input
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
perf stat -e amd_l3/enallslices,event=0..255,sliceid=0..7,.../modifier[Raw -o hwcert-perf.log --append -x';' -a -- sleep 1
-----------------------------------------------------------------------------
perf stat -e amd_l3/enallslices,event=0..255,sliceid=0..7,.../modifier[Raw -o hwcert-perf.log --append -x';' -a -- sleep 1
stderr:
event syntax error: '..eid=0..7,.../modifier[Raw'
\___ Unrecognized input
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
returned:
129
event syntax error: '..eid=0..7,.../modifier[Raw'
\___ Unrecognized input
Run 'perf list' for a list of valid events
Usage: perf stat [<options>] [<command>]
-e, --event <event> event selector. use 'perf list' to list available events
Environment
- Red Hat Enterprise Linux 10.0
- AMD EPYC™ 8004 Series Processor
- AMD EPYC™ 9004 Series Processor
- AMD EPYC™ 9005 Series Processor
- AMD EPYC™ 7003 Series Processors
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.