From: Markus Armbruster <armbru@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Christophe de Dinechin <dinechin@redhat.com>,
Michael Tokarev <mjt@tls.msk.ru>,
Laurent Vivier <laurent@vivier.eu>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH v4 2/2] trace: Example of non-tracing recorder use
Date: Mon, 03 Aug 2020 13:54:37 +0200 [thread overview]
Message-ID: <87d048j66a.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20200803104432.GG244853@stefanha-x1.localdomain> (Stefan Hajnoczi's message of "Mon, 3 Aug 2020 11:44:32 +0100")
Stefan Hajnoczi <stefanha@redhat.com> writes:
> On Thu, Jul 23, 2020 at 03:29:03PM +0200, Christophe de Dinechin wrote:
>> This patch is a simple example showing how the recorder can be used to
>> have one "topic" covering multiple entries. Here, the topic is "lock",
>> the idea being to have the latest lock changes for instance in case of
>> a crash or hang.
>>
>> Here are a few use cases:
>>
>> * Tracing lock updates:
>> RECORDER_TRACES=lock qemu
>> * Showing lock changes prior to a hang
>> RECORDER_TRACES=lock qemu &
>> # Wait until hang
>> killall -USR2 qemu # This will trigger a dump
>> * Graphic visualization of lock states:
>> RECORDER_TRACES="lock=state,id" qemu &
>> recorder_scope state
>> # Hit the 't' key to toggle timing display
>> # Hit the 'c' key to dump the screen data as CSV
>> cat recorder_scope_data-1.csv
>
> Dan raised a good point regarding integrating recorder functionality
> behind the tracetool interface.
>
> On the other hand, I would like to see where this goes so that we have
> enough experience to design the tracetool interface, if necessary.
>
> Therefore I am for merging this as-is and taking action when it's clear
> that duplication is taking place.
Sounds like we should not yet commit to a stable external interface.
The monitor command is HMP only. Not a stable interface. A QMP command
would have to be marked experimental with the customary x- prefix.
The environment variable is an external interface of the recorder
library. Attempting to police such interfaces of libraries we use seems
futile.
next prev parent reply other threads:[~2020-08-03 11:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-23 13:29 [PATCH v4 0/2] trace: Add a trace backend for the recorder library Christophe de Dinechin
2020-07-23 13:29 ` [PATCH v4 1/2] trace: Add support for recorder back-end Christophe de Dinechin
2020-08-03 10:40 ` Stefan Hajnoczi
2020-08-03 11:49 ` Markus Armbruster
2020-07-23 13:29 ` [PATCH v4 2/2] trace: Example of non-tracing recorder use Christophe de Dinechin
2020-08-03 10:44 ` Stefan Hajnoczi
2020-08-03 11:54 ` Markus Armbruster [this message]
2020-07-29 13:06 ` [PATCH v4 0/2] trace: Add a trace backend for the recorder library 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=87d048j66a.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=dinechin@redhat.com \
--cc=laurent@vivier.eu \
--cc=mjt@tls.msk.ru \
--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.