OSDN Git Service

hw/9pfs: Introduce tracing for 9p pdu handlers
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Wed, 12 Oct 2011 13:41:25 +0000 (19:11 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 15 Oct 2011 10:00:27 +0000 (15:30 +0530)
commitc572f23a3e7180dbeab5e86583e43ea2afed6271
tree791e32f3a104c7efabe627c9a530722c50ff0637
parentedb9eb7352b585c2b226487e3daa14871a5350d8
hw/9pfs: Introduce tracing for 9p pdu handlers

Plan is to replace the existing debug infrastructure with Qemu tracing
infrastructure so that user can dynamically enable/disable trace events and
therefore a meaningful trace log can be generated which can be further
filtered using an analysis script.

Note: Because of current simpletrace limitations, the trace events are
logging at max 6 args, however, once the more args are supported, we can
change trace events to log more info as well. Also, This initial patch only
provides a replacement for existing debug infra. More trace events to be
added later for newly added handlers and sub-routines.

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p.c
trace-events