perf list shows a bunch of what it calls metrics. The list starts off with
List of pre-defined events (to be used in -e):
Metrics:
BAClear_Cost
[Average Branch Address Clear Cost (fraction of cycles)]
C2_Pkg_Residency
[C2 residency percent per package]
C3_Core_Residency
[C3 residency percent per core]
C3_Pkg_Residency
[C3 residency percent per package]
I'd like to experiment with these but I can't get perf stat to use them. Since the first line says "(to be used in -e)", I tried the following, but it produces an error
103> perf stat -e IPL sleep 10
event syntax error: 'IPL'
\___ parser error
Then I found some examples on the internet using -M, but this doesn't work either.
103 > perf stat -M IPL sleep 10
Cannot find metric or group `IPL'
Usage: perf stat [] []
-M, --metrics
monitor specified metrics or metric groups (separated by ,)
Can someone explain how to get perf to use these metrics? Thanks.
Asked by rkg1
(25 rep)
Aug 31, 2022, 07:03 AM
Last activity: Feb 15, 2023, 08:42 PM
Last activity: Feb 15, 2023, 08:42 PM