e9527dd3 | 07-Jan-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
trace: add "-trace help"
Print a list of trace points
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Christian Borntraeger <borntraeger@
trace: add "-trace help"
Print a list of trace points
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Message-id: 1452174932-28657-7-git-send-email-den@openvz.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
10578a25 | 07-Jan-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
trace: add "-trace enable=..."
Allow enabling events without going through a file, for example:
qemu-system-x86_64 -trace bdrv_aio_writev -trace bdrv_aio_readv
or with globbing too:
qemu-sy
trace: add "-trace enable=..."
Allow enabling events without going through a file, for example:
qemu-system-x86_64 -trace bdrv_aio_writev -trace bdrv_aio_readv
or with globbing too:
qemu-system-x86_64 -trace 'bdrv_aio_*'
if an appropriate backend is enabled (simple, stderr, ftrace).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Message-id: 1452174932-28657-6-git-send-email-den@openvz.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
41fc57e4 | 07-Jan-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
trace: split trace_init_file out of trace_init_backends
This is cleaner, and improves error reporting with -daemonize.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lun
trace: split trace_init_file out of trace_init_backends
This is cleaner, and improves error reporting with -daemonize.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Message-id: 1452174932-28657-4-git-send-email-den@openvz.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
45bd0b41 | 07-Jan-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
trace: split trace_init_events out of trace_init_backends
This is cleaner and has two advantages. First, it improves error reporting with -daemonize. Second, multiple "-trace events" options now c
trace: split trace_init_events out of trace_init_backends
This is cleaner and has two advantages. First, it improves error reporting with -daemonize. Second, multiple "-trace events" options now cumulate.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Message-id: 1452174932-28657-3-git-send-email-den@openvz.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
585ec727 | 28-Oct-2015 |
Paolo Bonzini <pbonzini@redhat.com> |
trace: track enabled events in a separate array
This is more cache friendly on the fast path, where we already have the event id available.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed
trace: track enabled events in a separate array
This is more cache friendly on the fast path, where we already have the event id available.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
cef517ca | 28-Oct-2015 |
Stefan Hajnoczi <stefanha@redhat.com> |
trace: add make dependencies on tracetool source
Patches that change tracetool can break the build if old build output files are lying around.
This happens because the Makefile does not specify dep
trace: add make dependencies on tracetool source
Patches that change tracetool can break the build if old build output files are lying around.
This happens because the Makefile does not specify dependencies on tracetool. The build will use old object files that do not match the current source code.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
14101d02 | 25-Aug-2014 |
Lluís Vilanova <vilanova@ac.upc.edu> |
trace: [hmp] Reimplement "trace-event" and "info trace-events" using QMP
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Message-id: 20140825112002.31112.60143.stgit@fimbulvetr.bsc.es Signed-off
trace: [hmp] Reimplement "trace-event" and "info trace-events" using QMP
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Message-id: 20140825112002.31112.60143.stgit@fimbulvetr.bsc.es Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
465830fb | 30-May-2014 |
Lluís Vilanova <vilanova@ac.upc.edu> |
trace: [tcg] Generate TCG tracing routines
Generate header "trace/generated-tcg-tracers.h" with the necessary routines for tracing events in guest code:
* trace_${event}_tcg
Convenience wrapper
trace: [tcg] Generate TCG tracing routines
Generate header "trace/generated-tcg-tracers.h" with the necessary routines for tracing events in guest code:
* trace_${event}_tcg
Convenience wrapper that calls the translation-time tracer 'trace_${event}_trans', and calls 'gen_helper_trace_${event}_exec to generate the TCG code to later trace the event at execution time.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
f4654226 | 30-May-2014 |
Lluís Vilanova <vilanova@ac.upc.edu> |
trace: [tcg] Define TCG tracing helper routine wrappers
Generates header "trace/generated-helpers-wrappers.h" with definitions for TCG helper wrappers.
These wrappers ('gen_helper_trace_${event}_ex
trace: [tcg] Define TCG tracing helper routine wrappers
Generates header "trace/generated-helpers-wrappers.h" with definitions for TCG helper wrappers.
These wrappers ('gen_helper_trace_${event}_exec_wrapper') transform mixed native and TCG argument types to TCG types and call the actual TCG helpers ('gen_helper_trace_${event}_exec_proxy').
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
86946a2d | 08-May-2014 |
Michael Tokarev <mjt@tls.msk.ru> |
glib-compat.h: add new thread API emulation on top of pre-2.31 API
Thread API changed in glib-2.31 significantly. Before that version, conditionals and mutexes were only allocated dynamically, usin
glib-compat.h: add new thread API emulation on top of pre-2.31 API
Thread API changed in glib-2.31 significantly. Before that version, conditionals and mutexes were only allocated dynamically, using _new()/_free() interface. in 2.31 and up, they're allocated statically as regular variables, and old interface is deprecated.
(Note: glib docs says the new interface is available since version 2.32, but it was actually introduced in version 2.31).
Create the new interface using old primitives, by providing non-opaque definitions of the base types (GCond and GMutex) using GOnces.
Replace #ifdeffery around GCond and GMutex in trace/simple.c and coroutine-gthread.c too because it does not work anymore with the new glib-compat.h.
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> [Use GOnce to support lazy initialization; introduce CompatGMutex and CompatGCond. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
a35d9be6 | 02-Jun-2014 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
trace: Replace fprintf with error_report and print location
This replaces fprintf(stderr) with error_report.
This moves local variables to the beginning of the function to comply with QEMU's coding
trace: Replace fprintf with error_report and print location
This replaces fprintf(stderr) with error_report.
This moves local variables to the beginning of the function to comply with QEMU's coding style.
Suggested-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
5b808275 | 27-May-2014 |
Lluís Vilanova <vilanova@ac.upc.edu> |
trace: Multi-backend tracing
Adds support to compile QEMU with multiple tracing backends at the same time.
For example, you can compile QEMU with:
$ ./configure --enable-trace-backends=ftrace,dt
trace: Multi-backend tracing
Adds support to compile QEMU with multiple tracing backends at the same time.
For example, you can compile QEMU with:
$ ./configure --enable-trace-backends=ftrace,dtrace
Where 'ftrace' can be handy for having an in-flight record of events, and 'dtrace' can be later used to extract more information from the system.
This patch allows having both available without recompiling QEMU.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|
82432638 | 21-May-2014 |
Alexey Kardashevskiy <aik@ozlabs.ru> |
trace: Replace error with warning if event is not defined
At the moment QEMU exits if trace point is not defined which makes a developer life harder if he has to switch between branches with differe
trace: Replace error with warning if event is not defined
At the moment QEMU exits if trace point is not defined which makes a developer life harder if he has to switch between branches with different traces implemented.
This replaces error+exit wit WARNING if the tracepoint does not exist or not traceable.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
show more ...
|