Skip to content

Commit

Permalink
[media] vb2: add debugging code to check for unbalanced ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 11, 2014
1 parent 952c9ee commit b5b4541
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 50 deletions.
Loading

0 comments on commit b5b4541

Please sign in to comment.