diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2021-01-25 11:35:07 +0000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2021-02-01 10:50:55 +0000 |
commit | 418ed14268f797a5142b60cd557cd598eb548c66 (patch) | |
tree | d60cbfea4d6720dc04108e5ee8f4147553785dbf /docs | |
parent | 651d588f030097c4950331f8fffb9d442f89ba11 (diff) | |
download | qemu-418ed14268f797a5142b60cd557cd598eb548c66.zip qemu-418ed14268f797a5142b60cd557cd598eb548c66.tar.gz qemu-418ed14268f797a5142b60cd557cd598eb548c66.tar.bz2 |
trace: make the 'log' backend timestamp configurable
Timestamps in tracing output can be distracting. Make it possible to
control tid/timestamp printing with -msg timestamp=on|off. The default
is no tid/timestamps. Previously they were always printed.
Suggested-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210125113507.224287-3-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devel/tracing.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/devel/tracing.rst b/docs/devel/tracing.rst index 4ebf8e3..af395e9 100644 --- a/docs/devel/tracing.rst +++ b/docs/devel/tracing.rst @@ -224,6 +224,9 @@ effectively turns trace events into debug printfs. This is the simplest backend and can be used together with existing code that uses DPRINTF(). +The -msg timestamp=on|off command-line option controls whether or not to print +the tid/timestamp prefix for each trace event. + Simpletrace ----------- |