qemu/nbd
Vladimir Sementsov-Ogievskiy 9588463e74 nbd: use generic trace subsystem instead of TRACE macro
Let NBD use the trace mechanisms already present in qemu. Now you can
use the -trace optino of qemu, or the -T/--trace option of qemu-img,
qemu-io, and qemu-nbd, to select nbd traces. For qemu, the QMP commands
trace-event-{get,set}-state can also toggle tracing on the fly.

Example:
   qemu-nbd --trace 'nbd_*' <image file> # enables all nbd traces

Recompilation with CFLAGS=-DDEBUG_NBD is no more needed, furthermore,
DEBUG_NBD macro is removed from the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20170707152918.23086-11-vsementsov@virtuozzo.com>
[eblake: minor tweaks to a couple of traces]
Signed-off-by: Eric Blake <eblake@redhat.com>
2017-07-10 09:57:24 -05:00
..
client.c nbd: use generic trace subsystem instead of TRACE macro 2017-07-10 09:57:24 -05:00
common.c nbd/common: nbd_tls_handshake: remove extra TRACE 2017-07-10 09:57:24 -05:00
Makefile.objs nbd: Split nbd.c 2016-01-15 18:58:02 +01:00
nbd-internal.h nbd: use generic trace subsystem instead of TRACE macro 2017-07-10 09:57:24 -05:00
server.c nbd: use generic trace subsystem instead of TRACE macro 2017-07-10 09:57:24 -05:00
trace-events nbd: use generic trace subsystem instead of TRACE macro 2017-07-10 09:57:24 -05:00