mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
f246b86672
commit
10578a257d
@ -181,6 +181,15 @@ void trace_init_events(const char *file);
|
||||
*/
|
||||
void trace_init_file(const char *file);
|
||||
|
||||
/**
|
||||
* trace_enable_events:
|
||||
* @line_buf: A string with a glob pattern of events to be enabled or,
|
||||
* if the string starts with '-', disabled.
|
||||
*
|
||||
* Enable or disable matching events.
|
||||
*/
|
||||
void trace_enable_events(const char *line_buf);
|
||||
|
||||
|
||||
#include "trace/control-internal.h"
|
||||
|
||||
|
Reference in New Issue
Block a user