From 418ed14268f797a5142b60cd557cd598eb548c66 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 25 Jan 2021 11:35:07 +0000 Subject: 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 Signed-off-by: Stefan Hajnoczi Tested-by: Philippe Mathieu-Daudé Tested-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé Message-id: 20210125113507.224287-3-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- docs/devel/tracing.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') 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 ----------- -- cgit v1.2.3-55-g7522