[PATCH] Add (incomplete) decoder for Video4Linux ioctls

Mike Frysinger vapier at gentoo.org
Mon Mar 10 23:44:53 UTC 2014


On Fri 07 Mar 2014 11:51:56 Philippe Ombredanne wrote:
> On Tue, Mar 4, 2014 at 6:41 PM, William Manley wrote:
> > ---
> >  Makefile.am |   1 +
> >  defs.h      |   1 +
> >  ioctl.c     |   2 +
> >  v4l2.c      | 529
> >  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files
> >  changed, 533 insertions(+)
> >  create mode 100644 v4l2.c
> 
> Just curious, do you know if it is possible to have unit tests for this?

for writes, then it should be for outputs even with bad fd's (like /dev/null).  
otherwise, we'd have to rely on the V4L testing device being available ...

that is, unless we integrate a LD_PRELOAD or ptrace hack that catches ioctls 
and overrides the result :).  that'd probably be the only reasonable way to 
proceed sanely.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140310/fca5367e/attachment.bin>


More information about the Strace-devel mailing list