From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Eduardo Habkost <ehabkost@redhat.com>,
Stefan Hajnoczi <stefanha@gmail.com>,
Anthony Green <green@moxielogic.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
Blue Swirl <blauwirbel@gmail.com>,
Max Filippov <jcmvbkbc@gmail.com>,
Michael Walle <michael@walle.cc>,
"open list:ARM" <qemu-arm@nongnu.org>,
"open list:PowerPC" <qemu-ppc@nongnu.org>,
Stefan Hajnoczi <stefanha@redhat.com>,
Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
Paolo Bonzini <pbonzini@redhat.com>, Jia Liu <proljc@gmail.com>,
Guan Xuetao <gxt@mprc.pku.edu.cn>,
Leon Alrae <leon.alrae@imgtec.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH v5 1/2] trace: Add support for vCPU pointers in trace events
Date: Tue, 09 Feb 2016 22:06:49 +0100 [thread overview]
Message-ID: <87lh6tfv9y.fsf@fimbulvetr.bsc.es> (raw)
In-Reply-To: <87vb5ygkhw.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Tue, 09 Feb 2016 13:02:03 +0100")
Lluís Vilanova writes:
> Alex Bennée writes:
>> Lluís Vilanova <vilanova@ac.upc.edu> writes:
>>> The tracing infrastructure later needs to differentiate between regular
>>> pointers and pointers to vCPUs.
>>>
>>> Also changes all targets to use the new 'TCGv_cpu' type instead of the
>>> generic 'TCGv_ptr'. As of now, the change is merely cosmetic ('TCGv_cpu'
>>> translates into 'TCGv_ptr'), but that could change in the future to
>>> enforce the difference.
>>>
>>> Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
>>> ---
>>> include/qemu/typedefs.h | 1 +
>>> scripts/tracetool/transform.py | 9 ++++++++-
>>> target-alpha/translate.c | 2 +-
>>> target-arm/translate.c | 2 +-
>>> target-arm/translate.h | 2 +-
>>> target-cris/translate.c | 2 +-
>>> target-i386/translate.c | 2 +-
>>> target-lm32/translate.c | 2 +-
>>> target-m68k/translate.c | 2 +-
>>> target-microblaze/translate.c | 2 +-
>>> target-mips/translate.c | 2 +-
>>> target-moxie/translate.c | 2 +-
>>> target-openrisc/translate.c | 2 +-
>>> target-ppc/translate.c | 2 +-
>>> target-s390x/translate.c | 2 +-
>>> target-sh4/translate.c | 2 +-
>>> target-sparc/translate.c | 5 +++--
>>> target-tilegx/translate.c | 2 +-
>>> target-tricore/translate.c | 2 +-
>>> target-unicore32/translate.c | 2 +-
>>> target-xtensa/translate.c | 2 +-
>>> tcg/tcg-op.h | 2 --
>>> tcg/tcg.h | 6 ++++++
>>> trace/control.h | 3 ++-
>>> 24 files changed, 38 insertions(+), 24 deletions(-)
>>>
>>> diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
>>> index 78fe6e8..efbc8a9 100644
[...]
>>> --- a/tcg/tcg.h
>>> +++ b/tcg/tcg.h
>>> @@ -308,6 +308,12 @@ typedef tcg_target_ulong TCGArg;
>>> typedef struct TCGv_i32_d *TCGv_i32;
>>> typedef struct TCGv_i64_d *TCGv_i64;
>>> typedef struct TCGv_ptr_d *TCGv_ptr;
>>> +typedef TCGv_ptr TCGv_cpu;
>> This I understand.
>>> +#if TARGET_LONG_BITS == 32
>>> +typedef TCGv_i32 TCGv;
>>> +#else /* TARGET_LONG_BITS == 64 */
>>> +typedef TCGv_i64 TCGv;
>>> +#endif
>> Isn't this an un-related change? It makes sense as a clean-up but should
>> be separate for bisect-ability and documentation.
> I remember the move was to solve a compilation issue. I'll recheck if that's
> still necessary and get back to you.
It is not necessary anymore. I'll resend a new version with some additional
changes to make it easier to change the arguments injected by the "vcpu"
property (e.g., to make it easier to print the vCPU number & time on traces).
Thanks,
Lluis
next prev parent reply other threads:[~2016-02-09 21:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-29 16:29 [Qemu-devel] [PATCH v5 0/2] trace: Show vCPU info in guest code events Lluís Vilanova
2016-01-29 16:29 ` [Qemu-devel] [PATCH v5 1/2] trace: Add support for vCPU pointers in trace events Lluís Vilanova
2016-02-08 19:37 ` [Qemu-devel] [Qemu-arm] " Alex Bennée
2016-02-09 12:02 ` Lluís Vilanova
2016-02-09 21:06 ` Lluís Vilanova [this message]
2016-02-08 19:46 ` Alex Bennée
2016-02-09 12:05 ` Lluís Vilanova
2016-01-29 16:29 ` [Qemu-devel] [PATCH v5 2/2] trace: Add 'vcpu' event property to trace guest vCPU 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=87lh6tfv9y.fsf@fimbulvetr.bsc.es \
--to=vilanova@ac.upc.edu \
--cc=agraf@suse.de \
--cc=alex.bennee@linaro.org \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=ehabkost@redhat.com \
--cc=green@moxielogic.com \
--cc=gxt@mprc.pku.edu.cn \
--cc=jcmvbkbc@gmail.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=leon.alrae@imgtec.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=michael@walle.cc \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=proljc@gmail.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
--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).