[PATCH] Add (incomplete) decoder for Video4Linux ioctls

Dmitry V. Levin ldv at altlinux.org
Fri Mar 7 21:06:26 UTC 2014


On Thu, Mar 06, 2014 at 11:51:02PM +0000, William Manley wrote:
> On 04/03/14 17:41, William Manley wrote:
> > +		case VIDIOC_TRY_FMT:
> > +		case VIDIOC_S_FMT:
> > +		{
> > +			/* TODO: work out how strace deals with inout arguments and
> > +			   implement */
> > +			return 0;
> > +		}
> 
> I'd quite like to implement this.  How should I go about displaying this
> given that it uses inout arguments?  e.g. printing the contents of the
> struct passed as an argument on both entering(tcp) and exiting(tcp)
> seems like a good idea but I'm worried that it will look confusing to
> the user.

There are few examples (e.g. decode_select) where syscall arguments used
by the kernel for input and output are decoded on both entering and
exiting.  On entering, decoded arguments are printed using tprintf; on
exiting, the output is saved to tcp->auxstr and RVAL_STR is returned.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140308/07601791/attachment.bin>


More information about the Strace-devel mailing list