linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf tool: perf mem not working on s390x
@ 2017-06-23  7:28 Thomas-Mich Richter
  2017-06-23 18:33 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas-Mich Richter @ 2017-06-23  7:28 UTC (permalink / raw)
  To: linux-perf-users; +Cc: Hendrik Brueckner


When I run perf mem ... it fails with

[root@s8360046 perf]# ./perf mem record -- sleep 1
failed: memory events not supported
[root@s8360046 perf]

That is currently not working on s390.
When I look into the code, the perf mem command is looking for sysfs files in

-r--r--r-- 1 root root 4096 Jun  9 11:02 /sys/devices/cpu/events/mem-loads
-r--r--r-- 1 root root 4096 Jun  9 11:02 /sys/devices/cpu/events/mem-stores

Those 2 sysfs files do not exist on a s390. In fact there is a different
subdirectory tree.

I am not sure how this is handled on the s390 at all. I would have expected
perf mem to somehow retrieve the event numbers and then feed perf record
with these event numbers.
Any comments/ideas on how to handle this?
-- 
Thomas Richter, Dept 3303, IBM LTC Boeblingen Germany
--
Vorsitzende des Aufsichtsrats: Martina Koederitz 
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-23 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-23  7:28 perf tool: perf mem not working on s390x Thomas-Mich Richter
2017-06-23 18:33 ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).