From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: qemu-devel@nongnu.org, "Denis V. Lunev" <den@openvz.org>,
"Daniel P. Berrange" <berrange@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/2] trace: add trace_event_get_state_backends()
Date: Mon, 31 Jul 2017 20:39:35 +0300 [thread overview]
Message-ID: <87wp6o1p60.fsf@frigg.lan> (raw)
In-Reply-To: <20170731163353.GA24783@stefanha-x1.localdomain> (Stefan Hajnoczi's message of "Mon, 31 Jul 2017 17:33:53 +0100")
Stefan Hajnoczi writes:
> On Mon, Jul 31, 2017 at 06:09:56PM +0300, Lluís Vilanova wrote:
>> Stefan Hajnoczi writes:
>>
>> > Code that checks dstate is unaware of SystemTap and LTTng UST dstate, so
>> > the following trace event will not fire when solely enabled by SystemTap
>> > or LTTng UST:
>>
>> > if (trace_event_get_state(TRACE_MY_EVENT)) {
>> > str = g_strdup_printf("Expensive string to generate ...",
>> > ...);
>> > trace_my_event(str);
>> > g_free(str);
>> > }
>>
>> I believe this should be trace_event_get_state_backends(). Same applies to the
>> cover letter.
> This instance and the cover letter are both showing the pattern in
> existing code.
> The description "event will not fire" is correct with
> trace_event_get_state(). If I change it to
> trace_event_get_state_backends() then the description is no longer
> correct :).
Woops, I read this too quickly and assumed it was a usage example, sorry :)
Cheers,
Lluis
next prev parent reply other threads:[~2017-07-31 17:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-31 14:07 [Qemu-devel] [PATCH v2 0/2] trace: fix trace_event_get_state() for SystemTap and LTTng UST Stefan Hajnoczi
2017-07-31 14:07 ` [Qemu-devel] [PATCH v2 1/2] trace: add TRACE_<event>_BACKEND_DSTATE() Stefan Hajnoczi
2017-07-31 15:16 ` Daniel P. Berrange
2017-07-31 16:35 ` Stefan Hajnoczi
2017-08-01 9:23 ` Daniel P. Berrange
2017-07-31 14:07 ` [Qemu-devel] [PATCH v2 2/2] trace: add trace_event_get_state_backends() Stefan Hajnoczi
2017-07-31 15:09 ` Lluís Vilanova
2017-07-31 16:33 ` Stefan Hajnoczi
2017-07-31 17:39 ` Lluís Vilanova [this message]
2017-08-01 9:27 ` Daniel P. Berrange
2017-08-01 9:38 ` [Qemu-devel] [PATCH v2 0/2] trace: fix trace_event_get_state() for SystemTap and LTTng UST 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=87wp6o1p60.fsf@frigg.lan \
--to=vilanova@ac.upc.edu \
--cc=berrange@redhat.com \
--cc=den@openvz.org \
--cc=qemu-devel@nongnu.org \
--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 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.