From: "Alex Bennée" <alex.bennee@linaro.org>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Igor Lesik <lesikigor@meta.com>
Subject: Re: trace_exec_tb(tb, pc) does not have cpu index
Date: Tue, 22 Aug 2023 09:55:39 +0100 [thread overview]
Message-ID: <874jkrih81.fsf@linaro.org> (raw)
In-Reply-To: <SN7PR15MB6086C79340695F5915F00F20C31EA@SN7PR15MB6086.namprd15.prod.outlook.com>
Igor Lesik <lesikigor@meta.com> writes:
> Hi.
>
> I am wondering why trace events like trace_exec_tb(tb, pc) do not have
> cpu index, how to make sense of the trace in case of multiple vCPUs?
> I have changed it to trace_exec_tb(tb, pc, cpu->cpu_index) to read my
> trace, and now wondering should not it be there by default? Am I
> missing something?
Not necessarily but be aware trace_exec_tb won't catch every execution
of a TB without -d nochain anyway. There are other trace points/logging
methods you could use (-d cpu) which follow the executed PC more closely
although without the TB associated with it, although again needing
nochain for completeness.
It really depends on what your overall aim is? If you really want to
closely follow what a guest is doing then build an experiment using TCG
plugins where you can flexibly instrument and trace execution. If you
are debugging TB execution does the vCPU it runs on really matter?
>
> I am using "simple" trace backend.
>
> Thanks,
> Igor
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2023-08-22 9:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 19:32 trace_exec_tb(tb, pc) does not have cpu index Igor Lesik
2023-08-22 8:55 ` Alex Bennée [this message]
2023-08-22 9:46 ` Peter Maydell
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=874jkrih81.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=lesikigor@meta.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 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.