lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	qemu-devel@nongnu.org, Steven Rostedt <rostedt@goodmis.org>,
	Luiz Capitulino <lcapitulino@redhat.com>,
	lttng-dev@lists.lttng.org, Masami Hiramatsu <mhiramat@kernel.org>
Subject: Re: [PATCH 0/6] hypertrace: Lightweight guest-to-QEMU trace channel
Date: Mon, 5 Sep 2016 15:59:16 +0100	[thread overview]
Message-ID: <20160905145916.GI24656@redhat.com> (raw)
In-Reply-To: <87a8fvjtw5.fsf@fimbulvetr.bsc.es>

On Mon, Aug 29, 2016 at 08:46:02PM +0200, Lluís Vilanova wrote:
> Stefan Hajnoczi writes:
> 
> > When SystemTap is used the QEMU monitor interface does nothing.
> 
> That's not what I've experienced. I was able to use a stap script to change the
> tracing state of events:
> 
>    #!/usr/bin/env stap
> 
>    %{
>    #include </home/lluis/Projects/qemu-dbi-test/test.h>
>    %}
> 
>    function event:long(cpu:long, addr:long, info:long)
>    %{
>        char *argv[4] = {"/bin/sh", "-c", "echo 'trace-event * off' | telnet localhost 1234", NULL};
>        call_usermodehelper(argv[0], argv, NULL, UMH_WAIT_EXEC);
>        STAP_RETURN(0);
>    %}

I don't know what you're trying to achieve here.  The trace-event state,
as changed/viewed via QEMU monitor, is irrelevant to the dtrace (systemtap)
backend. dtrace and ltt-ust are both fully dynamic trace event backends,
so the QEMU event state has no effect on them. The probe points in the
binary are dynamically enabled / disabled by the dtrace runtime. ie dtrace
will automatically enable an event if you write a dtrace script that uses
the event.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

  parent reply	other threads:[~2016-09-05 14:59 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <147041636348.2523.2954972609232949598.stgit@fimbulvetr.bsc.es>
2016-08-18  9:47 ` [PATCH 0/6] hypertrace: Lightweight guest-to-QEMU trace channel Stefan Hajnoczi
2016-08-18 10:22   ` [Qemu-devel] " Lluís Vilanova
     [not found]   ` <87wpjeqsv9.fsf@fimbulvetr.bsc.es>
2016-08-18 13:53     ` Stefan Hajnoczi
     [not found]     ` <20160818135327.GJ4850@stefanha-x1.localdomain>
2016-08-18 14:21       ` Luiz Capitulino
     [not found]       ` <20160818102156.2c43bc6c@redhat.com>
2016-08-21 12:17         ` Lluís Vilanova
2016-08-18 10:54 ` Stefan Hajnoczi
2016-08-18 13:37   ` [Qemu-devel] " Luiz Capitulino
2016-08-18 16:19   ` Steven Rostedt
     [not found]   ` <20160818093711.6f77c30b@redhat.com>
2016-08-19  4:45     ` Masami Hiramatsu
     [not found]   ` <20160818121950.6a8d3c2d@gandalf.local.home>
2016-08-19 10:02     ` [Qemu-devel] " Stefan Hajnoczi
     [not found]     ` <20160819100207.GA17385@stefanha-x1.localdomain>
2016-08-19 13:30       ` Steven Rostedt
2016-08-21 12:32   ` Lluís Vilanova
     [not found]   ` <8737lypajh.fsf@fimbulvetr.bsc.es>
2016-08-23 15:54     ` Stefan Hajnoczi
     [not found]     ` <20160823155430.GB3948@stefanha-x1.localdomain>
2016-08-24 10:25       ` Lluís Vilanova
     [not found]       ` <87lgzm4g5p.fsf@fimbulvetr.bsc.es>
2016-08-29 13:45         ` Stefan Hajnoczi
2016-08-29 18:46           ` [Qemu-devel] " Lluís Vilanova
     [not found]           ` <87a8fvjtw5.fsf@fimbulvetr.bsc.es>
2016-08-31 16:35             ` Stefan Hajnoczi
     [not found]             ` <20160831163547.GD18281@stefanha-x1.localdomain>
2016-09-05 14:37               ` Lluís Vilanova
     [not found]               ` <87y436mn02.fsf@fimbulvetr.bsc.es>
2016-09-05 19:20                 ` Masami Hiramatsu
2016-09-06 12:59                   ` [Qemu-devel] " Lluís Vilanova
2016-09-13 13:52                 ` Stefan Hajnoczi
2016-09-13 16:50                   ` [Qemu-devel] " Lluís Vilanova
2016-09-05 14:59             ` Daniel P. Berrange [this message]
2016-09-05 18:29               ` Lluís Vilanova
     [not found]               ` <8760qaryhp.fsf@fimbulvetr.bsc.es>
2016-09-05 18:59                 ` Daniel P. Berrange
     [not found]                 ` <20160905185930.GP24656@redhat.com>
2016-09-06  8:54                   ` Lluís Vilanova

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=20160905145916.GI24656@redhat.com \
    --to=berrange@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=lttng-dev@lists.lttng.org \
    --cc=mhiramat@kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rostedt@goodmis.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@redhat.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).