From: Richard Henderson <rth@twiddle.net>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
Stefan Hajnoczi <stefanha@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Peter Crosthwaite <crosthwaite.peter@gmail.com>
Subject: Re: [Qemu-devel] [PATCH v3 2/2] trace: [all] Add "guest_mem_before" event
Date: Wed, 18 May 2016 10:53:35 -0700 [thread overview]
Message-ID: <d9e47d8b-b293-fa80-2c7c-2cd1931268e3@twiddle.net> (raw)
In-Reply-To: <146356847380.898.1364213805944124803.stgit@fimbulvetr.bsc.es>
On 05/18/2016 03:47 AM, Lluís Vilanova wrote:
> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
> ---
> include/exec/cpu_ldst_template.h | 25 ++++++++++++++++
> include/exec/cpu_ldst_useronly_template.h | 22 ++++++++++++++
> tcg/tcg-op.c | 32 ++++++++++++++++++--
> trace-events | 22 ++++++++++++++
> trace/mem-internal.h | 46 +++++++++++++++++++++++++++++
> trace/mem.h | 34 +++++++++++++++++++++
> 6 files changed, 177 insertions(+), 4 deletions(-)
> create mode 100644 trace/mem-internal.h
> create mode 100644 trace/mem.h
>
> diff --git a/include/exec/cpu_ldst_template.h b/include/exec/cpu_ldst_template.h
> index 3091c00..eaf69a1 100644
> --- a/include/exec/cpu_ldst_template.h
> +++ b/include/exec/cpu_ldst_template.h
> @@ -23,6 +23,13 @@
> * You should have received a copy of the GNU Lesser General Public
> * License along with this library; if not, see <http://www.gnu.org/licenses/>.
> */
> +
> +#if !defined(SOFTMMU_CODE_ACCESS)
> +#include "trace.h"
> +#endif
> +
> +#include "trace/mem.h"
> +
> #if DATA_SIZE == 8
> #define SUFFIX q
> #define USUFFIX q
> @@ -80,6 +87,12 @@ glue(glue(glue(cpu_ld, USUFFIX), MEMSUFFIX), _ra)(CPUArchState *env,
> int mmu_idx;
> TCGMemOpIdx oi;
>
> +#if !defined(SOFTMMU_CODE_ACCESS)
> + trace_guest_mem_before_exec(
> + ENV_GET_CPU(env), ptr,
> + trace_mem_build_info(SHIFT, false, MO_TE, false));
> +#endif
I don't understand what this event is supposed to be tracing.
There's no documentation at all, even in the commit log.
r~
next prev parent reply other threads:[~2016-05-18 17:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 10:47 [Qemu-devel] [PATCH v3 0/2] trace: Add event for vCPU memory accesses Lluís Vilanova
2016-05-18 10:47 ` [Qemu-devel] [PATCH v3 1/2] exec: [tcg] Track which vCPU is performing translation and execution Lluís Vilanova
2016-05-18 17:54 ` Richard Henderson
2016-05-18 10:47 ` [Qemu-devel] [PATCH v3 2/2] trace: [all] Add "guest_mem_before" event Lluís Vilanova
2016-05-18 17:53 ` Richard Henderson [this message]
2016-05-18 18:45 ` Lluís Vilanova
2016-05-27 20:43 ` Stefan Hajnoczi
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=d9e47d8b-b293-fa80-2c7c-2cd1931268e3@twiddle.net \
--to=rth@twiddle.net \
--cc=crosthwaite.peter@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vilanova@ac.upc.edu \
/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).