summaryrefslogtreecommitdiff
path: root/docs/devel/tracing.rst
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-01-25 11:35:07 +0000
committerStefan Hajnoczi <stefanha@redhat.com>2021-02-01 10:50:55 +0000
commit418ed14268f797a5142b60cd557cd598eb548c66 (patch)
treed60cbfea4d6720dc04108e5ee8f4147553785dbf /docs/devel/tracing.rst
parent651d588f030097c4950331f8fffb9d442f89ba11 (diff)
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/devel/tracing.rst')
-rw-r--r--docs/devel/tracing.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/devel/tracing.rst b/docs/devel/tracing.rst
index 4ebf8e38ea..af395e957d 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
-----------