I’m trying to run perf c2c
on a fresh installation of Ubuntu 24.04, but it’s not working as expected.
The command I’m using is:
$ perf c2c record ls
However, I’m getting the following error:
event syntax error: '..em-loads,ldlat=30/P'
___ Bad event or PMU
Unable to find PMU or event on a PMU of 'cpu_atom'
Initial error:
event syntax error: '..em-loads,ldlat=30/P'
___ unknown term 'ldlat' for pmu 'cpu_atom'
valid terms: event,pc,edge,inv,umask,cmask,config,config1,config2,config3,name,period,freq,branch_type,time,call-graph,stack-size,no-inherit,inherit,max-stack,nr,no-overwrite,overwrite,driver-config,percore,aux-output,aux-sample-size,metric-id,raw,legacy-cache,hardware
Run 'perf list' for a list of valid events
Usage: perf record [<options>] [<command>]
or: perf record [<options>] -- <command> [<options>]
-e, --event <event> event selector. use 'perf list' to list available events
When I check the available events using perf c2c record -e list
, I see the following:
$ perf c2c record -e list
ldlat-loads : available
ldlat-stores : available
Here are some details about my setup:
$ uname -r
6.8.0-40-generic
$ /usr/lib/linux-tools/6.8.0-40-generic/perf --version
perf version 6.8.12
$ perf --version
perf version 6.8.12
perf record
works fine, but perf c2c
throws the above error. I would really like to use c2c
. Does anyone have any ideas on how to fix this?
Thanks in advance!