diff options
author | Mark Wu <wudxw@linux.vnet.ibm.com> | 2011-10-31 11:29:04 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-11-01 14:12:15 +0000 |
commit | 454e202d52a517c631cb750ba65ff8079c08b301 (patch) | |
tree | dfa1b8ddc5ac554d14dc5fb24188b60a45eae288 /docs/tracing.txt | |
parent | ff74c5a9a91c6dbf1017195462aa4176f7381240 (diff) |
trace: Add wildcard trace event support
A basic wildcard matching is supported in both the monitor command
"trace-event" and the events list file. That means you can enable/disable
the events having a common prefix in a batch. For example, virtio-blk trace
events could be enabled using:
trace-event virtio_blk_* on
Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'docs/tracing.txt')
-rw-r--r-- | docs/tracing.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/tracing.txt b/docs/tracing.txt index 95ca16c05d..ea29f2c222 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -132,12 +132,19 @@ This functionality is also provided through monitor commands: means disabled. * trace-event NAME on|off - Enable/disable a given trace event. + Enable/disable a given trace event or a group of events having common prefix + through wildcard. The "-trace events=<file>" command line argument can be used to enable the events listed in <file> from the very beginning of the program. This file must contain one event name per line. +A basic wildcard matching is supported in both the monitor command "trace +-event" and the events list file. That means you can enable/disable the events +having a common prefix in a batch. For example, virtio-blk trace events could +be enabled using: + trace-event virtio_blk_* on + == Trace backends == The "tracetool" script automates tedious trace event code generation and also |