linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>
To: linux-perf-users@vger.kernel.org
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Subject: perf tool: perf mem not working on s390x
Date: Fri, 23 Jun 2017 09:28:53 +0200	[thread overview]
Message-ID: <4ad64b13-5ed4-a8f0-9a3a-2748663bb5a2@linux.vnet.ibm.com> (raw)


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

             reply	other threads:[~2017-06-23  7:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23  7:28 Thomas-Mich Richter [this message]
2017-06-23 18:33 ` perf tool: perf mem not working on s390x Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ad64b13-5ed4-a8f0-9a3a-2748663bb5a2@linux.vnet.ibm.com \
    --to=tmricht@linux.vnet.ibm.com \
    --cc=brueckner@linux.vnet.ibm.com \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).