From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Daniel P. Berrange" <dan@berrange.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] Add support for generating a systemtap tapset static probes
Date: Mon, 8 Nov 2010 21:24:24 +0000 [thread overview]
Message-ID: <AANLkTin4LyJhCBHWsVV6X=7E2hWLABJ3sXkD5x9gJK_A@mail.gmail.com> (raw)
In-Reply-To: <1289215984-9484-3-git-send-email-dan@berrange.com>
On Mon, Nov 8, 2010 at 11:33 AM, Daniel P. Berrange <dan@berrange.com> wrote:
> @@ -390,6 +396,54 @@ linetod_end_dtrace()
> EOF
> }
>
> +linetos_begin_dtrace()
> +{
> + return
> +}
> +
> +linetos_dtrace()
> +{
> + local name args arglist state
Missing binary, i, and arg.
> + name=$(get_name "$1")
> + args=$(get_args "$1")
> + arglist=$(get_argnames "$1", "")
> + state=$(get_state "$1")
> + if [ "$state" = "0" ] ; then
> + name=${name##disable }
> + fi
> +
> + if [ "$target" = "i386" ]
> + then
> + binary="qemu"
> + else
> + binary="qemu-system-$target"
> + fi
Perhaps we should just pass in the binary name to avoid hardcoding "qemu" and
"qemu-system-$target" here. If possible, let's make SystemTap also work for
userspace targets, not just for full-system softmmu targets.
> +
> + # Define prototype for probe arguments
> + cat <<EOF
> +probe qemu.system.$target.$name = process("$bindir/$binary").mark("$name")
> +{
> +EOF
> +
> + i=1
> + for arg in $arglist
> + do
> + cat <<EOF
> + $arg = \$arg$i;
> +EOF
> + i="$((i+1))"
> + done
> +
> + cat <<EOF
> +}
> +EOF
> +}
> +
> +linetos_end_dtrace()
> +{
> + return
> +}
> +
> # Process stdin by calling begin, line, and end functions for the backend
> convert()
> {
> @@ -455,6 +509,24 @@ tracetod()
> convert d
> }
>
> +tracetos()
How about using 'stap' instead of 's' so it's clear we're not generating
assembly?
Stefan
next prev parent reply other threads:[~2010-11-08 21:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-08 11:33 [Qemu-devel] [PATCH 0/2] Add support for SystemTAP and DTrace tracing backends Daniel P. Berrange
2010-11-08 11:33 ` [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability Daniel P. Berrange
2010-11-08 16:52 ` Stefan Hajnoczi
2010-11-08 16:57 ` Daniel P. Berrange
2010-11-08 19:29 ` Stefan Hajnoczi
2010-11-08 11:33 ` [Qemu-devel] [PATCH 2/2] Add support for generating a systemtap tapset static probes Daniel P. Berrange
2010-11-08 21:24 ` Stefan Hajnoczi [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-11-08 19:33 [Qemu-devel] [PATCH 0/2] Add support for SystemTAP and DTrace tracing backends (v5) Daniel P. Berrange
2010-11-08 19:33 ` [Qemu-devel] [PATCH 2/2] Add support for generating a systemtap tapset static probes Daniel P. Berrange
2010-11-12 13:20 [Qemu-devel] Add support for SystemTAP and DTrace tracing backends (v6) Daniel P. Berrange
2010-11-12 13:20 ` [Qemu-devel] [PATCH 2/2] Add support for generating a systemtap tapset static probes Daniel P. Berrange
2010-11-12 13:53 ` 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='AANLkTin4LyJhCBHWsVV6X=7E2hWLABJ3sXkD5x9gJK_A@mail.gmail.com' \
--to=stefanha@gmail.com \
--cc=dan@berrange.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 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).