]> granicus.if.org Git - strace/commit
loop.c: enhance loop ioctl parser
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 4 Jul 2015 14:40:02 +0000 (17:40 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 9 Jul 2015 02:04:34 +0000 (02:04 +0000)
commit3cfabeb8815811b42691fe626862073e75aec8cb
tree86f04d4de7db99927d2a8a3d176cf3cd8e62a817
parent97317d9d838272ad26a860e12137a7099f5f02ad
loop.c: enhance loop ioctl parser

Decode as much data on entering syscall as possible.

* loop.c: Include <linux/ioctl.h> instead of <sys/ioctl.h>.
Update for RVAL_DECODED.
(decode_loop_info, decode_loop_info64): New functions.
(loop_ioctl): Use them.  Decode LOOP_SET_STATUS, LOOP_SET_STATUS64,
LOOP_SET_FD, LOOP_CHANGE_FD, LOOP_CTL_ADD and LOOP_CTL_REMOVE on
entering syscall.
Print LOOP_SET_FD and LOOP_CHANGE_FD arguments using printfd.
loop.c