a507a0bb77
* dm.c: New file. * xlat/dm_flags.in: Likewise. * Makefile.am (strace_SOURCES): Add dm.c. * configure.ac (AC_CHECK_HEADERS): Add linux/dm-ioctl.h. * defs.h (dm_ioctl): New prototype. * ioctl.c (ioctl_decode) [HAVE_LINUX_DM_IOCTL_H]: Call dm_ioctl for 0xfd ioctl type. * tests/ioctl_dm.c: New file. * tests/ioctl_dm-v.c: Likewise. * tests/ioctl_dm.test: New test. * tests/ioctl_dm-v.test: Likewise. * tests/.gitignore: Add ioctl_dm and ioctl_dm-v. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add ioctl_dm.test and ioctl_dm-v.test. Co-authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
13 lines
236 B
Bash
Executable File
13 lines
236 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check decoding of DM* ioctls.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
run_strace -a16 -s9 -eioctl $args > "$EXP"
|
|
check_prog grep
|
|
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
|
|
match_diff "$OUT" "$EXP"
|
|
rm -f "$EXP" "$OUT"
|