]> granicus.if.org Git - strace/commitdiff
Implement iopl syscall decoding
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 22 Nov 2015 18:21:54 +0000 (18:21 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 22 Nov 2015 23:10:12 +0000 (23:10 +0000)
* iopl.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* linux/dummy.h (sys_iopl): Remove stub alias.

Makefile.am
iopl.c [new file with mode: 0644]
linux/dummy.h

index 9f3d62ddc456393b52a8655eec28183faf8f5568..f4271adcd7f8cc60af02be988f21d638f216e34b 100644 (file)
@@ -74,6 +74,7 @@ strace_SOURCES =      \
        io.c            \
        ioctl.c         \
        ioperm.c        \
+       iopl.c          \
        ioprio.c        \
        ipc_defs.h      \
        ipc_msg.c       \
diff --git a/iopl.c b/iopl.c
new file mode 100644 (file)
index 0000000..0f2bb32
--- /dev/null
+++ b/iopl.c
@@ -0,0 +1,8 @@
+#include "defs.h"
+
+SYS_FUNC(iopl)
+{
+       tprintf("%d", (int) tcp->u_arg[0]);
+
+       return RVAL_DECODED;
+}
index fca11ef134a8f1197bb7499ccc3aed7ef93b642b..65f6f245ba529977692979756ebc81cbbe9aeb3b 100644 (file)
@@ -32,7 +32,6 @@
 #endif
 
 /* still unfinished */
-#define        sys_iopl                printargs
 #define        sys_kcmp                printargs
 #define        sys_kexec_file_load     printargs
 #define        sys_lookup_dcookie      printargs