Menu

#16 Audio ioctl decode patch for strace 4.5.9

None
closed
nobody
None
5
2018-04-05
2005-09-20
Anonymous
No

This patch provides strace 4.5.9 the ability to decode
OSS related ioctl calls. This patch is based on the
patch "audio ioctl decode patch" provided by yorick
which was originally for strace 4.4 but has merely been
updated to work with the new build infrastructure in
strace 4.5.9. More information regarding the patch
capabilities can be found there.

The advantage of this patch is that, for example, an
strace which would normally produce this output:

ioctl(4, SNDCTL_DSP_SETFMT or SOUND_PCM_READ_BITS,
0xbfe4d270) = 0
ioctl(4, SNDCTL_DSP_STEREO, 0xbfe4d270) = 0
ioctl(4, SNDCTL_DSP_SPEED or SOUND_PCM_READ_RATE,
0xbfe4d2d8) = 0

would now produce this output:

ioctl(4, SNDCTL_DSP_SETFMT or SOUND_PCM_READ_BITS,
{AFMT_S16_LE} -> {AFMT_S16_LE}) = 0
ioctl(4, SNDCTL_DSP_STEREO, {0} -> {0}) = 0
ioctl(4, SNDCTL_DSP_SPEED or SOUND_PCM_READ_RATE,
{48000} -> {48000}) = 0

Note that this patch has been minimally tested under
CentOS 4.1 which uses strace 4.5.9. I have not
bothered trying it with the most current strace at the
time of this post, which is strace 4.5.12.

After applying the patch, one should be able to go
through the usual three step build:

./configure
make
su -c 'make install'

Tim Mason
HCJB World Radio
http://www.hcjb.org
tmason at hcjbeng dot org

Discussion

  • Nobody/Anonymous

     
  • Eugene Syromyatnikov

    • status: open --> closed
    • Group: -->