]> granicus.if.org Git - strace/commit
Decode mtd ioctls
authorMike Frysinger <vapier@gentoo.org>
Thu, 5 Apr 2012 02:22:01 +0000 (22:22 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 6 Apr 2012 14:39:15 +0000 (14:39 +0000)
commit0cbed357ab749fa0cf58e8d72230c2ed92334932
treee2750c52d2d1555da6bed03c453c91261822a95e
parent7ff5ed932568a8049c3ca134da374f64c3e255ce
Decode mtd ioctls

I got tired of figuring out mtd structures (which show up a lot
in the embedded space), so add decoders for those ioctls.

* defs.h (mtd_ioctl): New prototype.
(print_loff_t): Likewise.
* io.c (print_loff_t): Delete static keyword
* ioctl.c (ioctl_decode): Call mtd_ioctl when code is 'M'.
* Makefile.am (strace_SOURCES): Add mtd.c.
(EXTRA_DIST): Add linux/mtd-abi.h.
* mtd.c: New file.
* linux/mtd-abi.h: New file.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Makefile.am
defs.h
io.c
ioctl.c
linux/mtd-abi.h [new file with mode: 0644]
mtd.c [new file with mode: 0644]