Skip to content

Commit

Permalink
trace: document how to specify multiple --trace patterns
Browse files Browse the repository at this point in the history
It is possible to repeat the --trace option to specify multiple
patterns. This may be preferrable to users who do not want to create a
file with a list of patterns.

Suggested-by: BALATON Zoltan <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: [email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
stefanhaRH committed Feb 1, 2021
1 parent c6e93c9 commit 3faf22e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/devel/tracing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ events::
This output comes from the "log" trace backend that is enabled by default when
``./configure --enable-trace-backends=BACKENDS`` was not explicitly specified.

More than one trace event pattern can be specified by providing a file
instead::
Multiple patterns can be specified by repeating the ``--trace`` option::

$ qemu --trace "kvm_*" --trace "virtio_*" ...

When patterns are used frequently it is more convenient to store them in a
file to avoid long command-line options::

$ echo "memory_region_ops_*" >/tmp/events
$ echo "kvm_*" >>/tmp/events
$ qemu --trace events=/tmp/events ...

Trace events
Expand Down

0 comments on commit 3faf22e

Please sign in to comment.