Skip to contentSkip to conversation

perf mem: invalid or unsupported event: 'cpu/mem-loads/pp'

DISCUSSION Milian Wolff 2 participants 3 messages Jul 22, 2013 – Jun 14, 2015

lore
Share & tools
lore
#0 lore raw

Hey there,

I just found perf mem in the output of perf help and wanted to try it:

$ perf mem record ls
invalid or unsupported event: 'cpu/mem-loads/pp'
Run 'perf list' for a list of valid events

usage: perf record [<options>] [<command>]
...

Am I missing a kernel configuration? Or what is going on here?

Cheers

Signature · 3 lines
Milian Wolff
[email protected]
http://milianw.de
#1 lore raw
Quoted 4 lines · Milian Wolff

Hey there,

I just found perf mem in the output of perf help and wanted to try it:

Quoted 8 lines
$ perf mem record ls
invalid or unsupported event: 'cpu/mem-loads/pp'
Run 'perf list' for a list of valid events

usage: perf record [<options>] [<command>]
...

Am I missing a kernel configuration? Or what is going on here?

You need a kernel that has mem-loads in /sys/bus/event_source/devices/cpu/events

Assuming you're on x86 you'll need a 3.10 or later kernel.

cheers

#2 lore raw
Quoted 12 lines · On Tuesday 23 July 2013 11:46:49 Michael Ellerman wrote:
Quoted 11 lines · Milian Wolff

Hey there,

I just found perf mem in the output of perf help and wanted to try it:

$ perf mem record ls
invalid or unsupported event: 'cpu/mem-loads/pp'
Run 'perf list' for a list of valid events

usage: perf record [<options>] [<command>]
...

Quoted 6 lines
Quoted 1 line

Am I missing a kernel configuration? Or what is going on here?

You need a kernel that has mem-loads in
/sys/bus/event_source/devices/cpu/events

Assuming you're on x86 you'll need a 3.10 or later kernel.

Sorry for the long delay. I wanted to try it out again today, but I still get the same error message above. This is with a 4.0.5 kernel and perf 4.0.3.

What is required to get mem-loads in the path specified above?

Bye

Signature · 3 lines
Milian Wolff
[email protected]
http://milianw.de