Mithun Cy
Mithun Cy

Reputation: 23

perf mem error event 'cpu/mem-stores/P' not supported

When I run

[bin]$ perf mem record
I get
failed: event 'cpu/mem-stores/P' not supported

bin]$ uname -a
Linux 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

bin]$ perf --version
perf version 3.10.0-693.21.1.el7.x86_64.debug

Is there a means I can find why I am getting this error? Is it limited by the version of perf or is it limited only to sudo users (I am not) or my hardware does not support those events?

JFYI On the machine if I run below command

[bin]$ perf mem record -e list
ldlat-loads  : available
ldlat-stores

Upvotes: 2

Views: 3091

Answers (1)

Hadi Brais
Hadi Brais

Reputation: 23659

Profiling store memory accesses (Precise Store) is available on Sandy Bridge and later. So it's not supported on your CPU. However, load profiling is supported as the output of the tool indicates.

By default, both loads and stores are profiled. But because Precise Store is not supported on your CPU, the tool emits an error. So you can profile loads only by passing the -t load switch.

Upvotes: 3

Related Questions