From: Stefan Hajnoczi <stefanha@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Nesrine Zouari" <nesrine.zouari@enis.tn>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Lluís Vilanova" <vilanova@ac.upc.edu>
Subject: Re: [Qemu-devel] Qemu Trace
Date: Mon, 5 Feb 2018 15:51:08 +0000 [thread overview]
Message-ID: <20180205155108.GF28241@stefanha-x1.localdomain> (raw)
In-Reply-To: <CAFEAcA-5PwhJw9epXh+0_oe3E-vsVKkQDX3s1Go-FBzO=FA3zA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1986 bytes --]
On Fri, Feb 02, 2018 at 03:53:45PM +0000, Peter Maydell wrote:
> On 2 February 2018 at 10:08, Stefan Hajnoczi <stefanha@redhat.com> wrote:
> > On Thu, Feb 01, 2018 at 04:30:10PM +0100, Nesrine Zouari wrote:
> >> I am a computer engineering student and I am actually working on my
> >> graduation project at Lauterbach company. The project is about Qemu Trace
> >> and as a future I would like to contribute this work to the main line.
> >>
> >> My project is divided into two parts:
> >>
> >> 1/ Collecting the Guest trace data : The trace solution should be able to
> >> provide:
> >>
> >> a/ Instruction flow Trace
> >>
> >> b/ Memory read/write access
> >>
> >> c/ Time Stamps.
> >>
> >> d/ For tracing rich operating systems that are using MMU, we
> >> additionally need to trace the task switches.
> >
> > Lluìs has done the most instrumentation work in qemu.git and can explain
> > the current status.
>
> I think at the moment the status is that we're still discussing
> what the trace plugin API should be... there are some mailing
s/trace plugin API/instrumentation plugin API/
> list threads on the subject from I think last year some time.
The point of the instrumentation plugin API is for online analysis
(stuff that cannot be post-processed offline) with the ability for the
plugin to control QEMU (e.g. affect translation during a run). That is
not necessary for Nesrine's use case.
I see two main requirements in Nesrine's use case:
1. Instruction flow, memory access, and task switch trace. This doesn't
exist today and requires adding new trace events.
2. An external interface for processing traces. There seems to be a
requirement for doing it online and not by post-processing trace files.
Therefore I suggested looking into LTTng UST, which has an efficient
interface and libraries for tracing processes. I think no QEMU changes
are necessary here.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2018-02-05 15:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-01 15:30 [Qemu-devel] Qemu Trace Nesrine Zouari
2018-02-01 23:07 ` Dongli Zhang
2018-02-02 10:08 ` Stefan Hajnoczi
2018-02-02 10:45 ` Nesrine Zouari
2018-02-02 15:53 ` Peter Maydell
2018-02-05 15:51 ` Stefan Hajnoczi [this message]
2018-02-05 15:55 ` Peter Maydell
2018-02-06 9:17 ` Stefan Hajnoczi
2018-02-06 10:55 ` Peter Maydell
2018-02-06 15:44 ` 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=20180205155108.GF28241@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=nesrine.zouari@enis.tn \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=vilanova@ac.upc.edu \
/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).