[PATCH] trace args of some /dev/dsp ioctls

Yair K. cesium2 at gmail.com
Fri Jan 25 10:44:10 UTC 2008


Hi,

"/dev/dsp" is the sound interface for the OSS sound API, supported on FreeBSD 
and Linux (via ALSA emulation). ioctls pass a pointer to and from the device 
node. Currently strace only shows the address of the pointers, which isn't 
very useful. The attached patch will trace the pointers, showing their 
referenced value before and after the ioctl, expanding the masks/structs when 
it could be helpful.

Notes:
 1. Some DSP ioctls have the same codes but different directions. dsp.c isn't 
affected, but sys_ioctl (in io.c) will print both options. Not printing the 
incorrect ioctl name would have required changes which would have 
affected other components. This also affected the ioctl generation (some 
ioctls weren't in ioctlent.h, because ioctlsort.c thought they were 
identical).
 2. I'm not subscribed - CC me if desired.

Yours,
	Yair K.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.diff.gz
Type: application/x-gzip
Size: 2803 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20080125/6c022640/attachment.bin>


More information about the Strace-devel mailing list