upstream: [media] vb2: add debugging code to check for unbalanced ops
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 29 Jan 2014 14:53:25 +0000 (11:53 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:54:53 +0000 (11:54 +0900)
commit2f2a25c7507135cb45dbfa019724b115bc655fd5
treebdd06f0425f779aadb2b37f934ff9d43979c9c01
parentd9d40bda92696e6f5161390ea384dc3b2ae24ac7
upstream: [media] vb2: add debugging code to check for unbalanced ops

When a vb2_queue is freed check if all the mem_ops and queue ops were balanced.
So the number of calls to e.g. buf_finish has to match the number of calls to
buf_prepare, etc.

This code is only enabled if CONFIG_VIDEO_ADV_DEBUG is set.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
include/media/videobuf2-core.h