]> xenbits.xensource.com Git - xen.git/commit
tools/xenstore: introduce trace classes
authorJuergen Gross <jgross@suse.com>
Wed, 18 Jan 2023 09:50:13 +0000 (10:50 +0100)
committerJulien Grall <jgrall@amazon.com>
Fri, 20 Jan 2023 09:23:51 +0000 (09:23 +0000)
commit1d2355d1c64a73bbf456a3a0215e22e5ad54abeb
tree967606037d0db058bf997a4ec22f734f370290ed
parent46d960890605f0ebc257ac89050105fe012ee2cd
tools/xenstore: introduce trace classes

Make the xenstored internal trace configurable by adding classes
which can be switched on and off independently from each other.

Define the following classes:

- obj: Creation and deletion of interesting "objects" (watch,
  transaction, connection)
- io: incoming requests and outgoing responses
- wrl: write limiting

Per default "obj" and "io" are switched on.

Entries written via trace() will always be printed (if tracing is on
at all).

Add the capability to control the trace settings via the "log"
command and via a new "--log-control" command line option.

Add a missing trace_create() call for creating a transaction.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
docs/misc/xenstore.txt
tools/xenstore/xenstored_control.c
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h
tools/xenstore/xenstored_domain.c
tools/xenstore/xenstored_transaction.c