]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit01fe6ade787dcc1155bced8b17f59cecd3e17de6
tree69052ff35a8795ff3c17904ebe59ad5949f58d60
parentf7b643614186d1d748ff81bc736fb202d29014f2
[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