All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Alon Levy <alevy@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] Add a stp file for usage from build directory
Date: Mon, 27 May 2013 08:32:52 +0200	[thread overview]
Message-ID: <51A2FE14.2050501@redhat.com> (raw)
In-Reply-To: <1369621146-17095-1-git-send-email-alevy@redhat.com>

Il 27/05/2013 04:19, Alon Levy ha scritto:
> For systemtap the location of the process being tapped is crucial, so
> the existing stp file requires installation to use. A new file providing
> qemu.local prefixed probes lets scripts run without an install step.
> 
> Signed-off-by: Alon Levy <alevy@redhat.com>
> ---
> 
>  Makefile.target | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/Makefile.target b/Makefile.target
> index ce4391f..5d176e2 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -35,7 +35,7 @@ config-target.h: config-target.h-timestamp
>  config-target.h-timestamp: config-target.mak
>  
>  ifdef CONFIG_TRACE_SYSTEMTAP
> -stap: $(QEMU_PROG).stp
> +stap: $(QEMU_PROG).stp $(QEMU_PROG).local.stp
>  
>  ifdef CONFIG_USER_ONLY
>  TARGET_TYPE=user
> @@ -51,6 +51,17 @@ $(QEMU_PROG).stp: $(SRC_PATH)/trace-events
>  		--target-arch=$(TARGET_ARCH) \
>  		--target-type=$(TARGET_TYPE) \
>  		< $< > $@,"  GEN   $(TARGET_DIR)$(QEMU_PROG).stp")
> +
> +$(QEMU_PROG).local.stp: $(SRC_PATH)/trace-events
> +	$(call quiet-command,$(TRACETOOL) \
> +		--format=stap \
> +		--backend=$(TRACE_BACKEND) \
> +		--binary=$(SRC_PATH)/$(TARGET_DIR)$(QEMU_PROG) \

This is not the build directory for out-of-tree builds.

> +		--probe-prefix=qemu.local \

Why change the prefix?

Paolo

> +		--target-arch=$(TARGET_ARCH) \
> +		--target-type=$(TARGET_TYPE) \
> +		< $< > $@,"  GEN   $(TARGET_DIR)$(QEMU_PROG).local.stp")
> +
>  else
>  stap:
>  endif
> 

  reply	other threads:[~2013-05-27  6:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-27  2:19 [Qemu-devel] [RFC] Add a stp file for usage from build directory Alon Levy
2013-05-27  6:32 ` Paolo Bonzini [this message]
2013-05-28 12:09   ` Alon Levy
2013-05-28 12:18     ` Paolo Bonzini
2013-05-28 12:33       ` Alon Levy
2013-05-28 12:37         ` Paolo Bonzini
2013-05-28 13:25           ` Alon Levy
2013-05-28 13:57             ` Alon Levy
2013-05-28 14:17               ` Paolo Bonzini
2013-05-28 15:24     ` 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=51A2FE14.2050501@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=alevy@redhat.com \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.