qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] kvm: fix traces to use %x instead of %d
@ 2013-09-04 10:26 Alexey Kardashevskiy
  2013-09-09 12:07 ` Stefan Hajnoczi
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Kardashevskiy @ 2013-09-04 10:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alexey Kardashevskiy, Stefan Hajnoczi

KVM request types are normally defined using hex constants but QEMU traces
print decimal values instead, which is not very convenient.

This changes the request type format from %d to %x.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
---
Changes:
v2:
* added "0x" to format strings so the change won't come unnoticed
* fixed the commit message
---
 trace-events | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/trace-events b/trace-events
index 8285c5a..c68b0c7 100644
--- a/trace-events
+++ b/trace-events
@@ -1167,9 +1167,9 @@ virtio_ccw_new_device(int cssid, int ssid, int schid, int devno, const char *dev
 migrate_set_state(int new_state) "new state %d"
 
 # kvm-all.c
-kvm_ioctl(int type, void *arg) "type %d, arg %p"
-kvm_vm_ioctl(int type, void *arg) "type %d, arg %p"
-kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type %d, arg %p"
+kvm_ioctl(int type, void *arg) "type 0x%x, arg %p"
+kvm_vm_ioctl(int type, void *arg) "type 0x%x, arg %p"
+kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type 0x%x, arg %p"
 kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d"
 
 # memory.c
-- 
1.8.4.rc4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] kvm: fix traces to use %x instead of %d
  2013-09-04 10:26 [Qemu-devel] [PATCH v2] kvm: fix traces to use %x instead of %d Alexey Kardashevskiy
@ 2013-09-09 12:07 ` Stefan Hajnoczi
  2013-09-12 16:31   ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hajnoczi @ 2013-09-09 12:07 UTC (permalink / raw)
  To: Alexey Kardashevskiy; +Cc: qemu-devel, Stefan Hajnoczi

On Wed, Sep 04, 2013 at 08:26:25PM +1000, Alexey Kardashevskiy wrote:
> KVM request types are normally defined using hex constants but QEMU traces
> print decimal values instead, which is not very convenient.
> 
> This changes the request type format from %d to %x.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> Reviewed-by: Andreas Färber <afaerber@suse.de>
> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> Changes:
> v2:
> * added "0x" to format strings so the change won't come unnoticed
> * fixed the commit message
> ---
>  trace-events | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Thanks, applied to my tracing tree:
https://github.com/stefanha/qemu/commits/tracing

Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] kvm: fix traces to use %x instead of %d
  2013-09-09 12:07 ` Stefan Hajnoczi
@ 2013-09-12 16:31   ` Paolo Bonzini
  0 siblings, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2013-09-12 16:31 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: Alexey Kardashevskiy, qemu-devel, Stefan Hajnoczi

Il 09/09/2013 14:07, Stefan Hajnoczi ha scritto:
> On Wed, Sep 04, 2013 at 08:26:25PM +1000, Alexey Kardashevskiy wrote:
>> KVM request types are normally defined using hex constants but QEMU traces
>> print decimal values instead, which is not very convenient.
>>
>> This changes the request type format from %d to %x.
>>
>> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
>> Reviewed-by: Andreas Färber <afaerber@suse.de>
>> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
>> ---
>> Changes:
>> v2:
>> * added "0x" to format strings so the change won't come unnoticed
>> * fixed the commit message
>> ---
>>  trace-events | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> Thanks, applied to my tracing tree:
> https://github.com/stefanha/qemu/commits/tracing

Applied also to uq/master, since I don't see it in github.

Paolo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-12 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 10:26 [Qemu-devel] [PATCH v2] kvm: fix traces to use %x instead of %d Alexey Kardashevskiy
2013-09-09 12:07 ` Stefan Hajnoczi
2013-09-12 16:31   ` Paolo Bonzini

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).