Skip to contentSkip to conversation

using perf lock

DISCUSSION Hank 2 participants 2 messages May 23, 2012 – May 24, 2012

lore
Share & tools
lore

Hank

author
#0 lore raw

Hi,

I've been trying to use perf lock command on my Ubuntu 12.04, but I'm getting this error:

invalid or unsupported event: 'lock:lock_acquire'

What might be the problem? Should I get the kernel source code?

Thanks,

#1 lore raw

Hi,

Quoted 7 lines · Hank

I've been trying to use perf lock command on my Ubuntu 12.04, but I'm getting this error:

invalid or unsupported event: 'lock:lock_acquire'

What might be the problem? Should I get the kernel source code?

Maybe due to the kernel was built without CONFIG_LOCKDEP and/or CONFIG_LOCK_STAT. You can grep it from /boot/config-$(uname -r). If so, you need to rebuild the kernel.

Thanks,
Namhyung