From: Michael Neuling <mikey@neuling.org>
To: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Detecting LD/ST instruction
Date: Fri, 23 Aug 2013 09:31:04 +1000 [thread overview]
Message-ID: <5184.1377214264@ale.ozlabs.ibm.com> (raw)
In-Reply-To: <20130822225525.GA5214@us.ibm.com>
> I am working on implementing the 'perf mem' command for Power
> systems. This would for instance, let us know where in the memory
> hierarchy (L1, L2, Local RAM etc) the data for a load/store
> instruction was found (hit).
>
> On Power7, if the mcmcra[DCACHE_MISS] is clear _and_ the
> instruction is a load/store, then it implies a L1-hit.
>
> Unlike on Power8, the Power7 event vector has no indication
> if the instruction was load/store.
>
> In the context of a PMU interrupt, is there any way to determine
> if an instruction is a load/store ?
You could read the instruction from memory and work it out.
We do something similar to this in power_pmu_bhrb_to() where we read the
instruction and work out where the branch is going to.
If you do this, please use and/or extend the functions in
arch/powerpc/lib/code-patching.c
Mikey
next prev parent reply other threads:[~2013-08-22 23:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-22 22:55 Detecting LD/ST instruction Sukadev Bhattiprolu
2013-08-22 23:31 ` Michael Neuling [this message]
2013-08-24 8:47 ` Sukadev Bhattiprolu
2013-08-26 1:37 ` Michael Neuling
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=5184.1377214264@ale.ozlabs.ibm.com \
--to=mikey@neuling.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=sukadev@linux.vnet.ibm.com \
/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).