[media] videobuf2: add trace events
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 10 Jul 2015 13:49:26 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 15:04:12 +0000 (12:04 -0300)
commit2091f5181c66b3617a977e79843aba10e087be6c
tree69052ff35a8795ff3c17904ebe59ad5949f58d60
parentc13a5ccf5da86239213033214658b8a170eeab87
[media] videobuf2: add trace events

Add videobuf2 specific vb2_qbuf and vb2_dqbuf trace events that mirror the
v4l2_qbuf and v4l2_dqbuf trace events, only they include additional
information about queue fill state and are emitted right before the buffer
is enqueued in the driver or userspace is woken up. This allows to make
sense of the timeline of trace events in combination with others that might
be triggered by __enqueue_in_driver.

Also two new trace events vb2_buf_queue and vb2_buf_done are added,
allowing to trace the handover between videobuf2 framework and driver.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
include/trace/events/v4l2.h