[PATCH 01/26] Remove parser of create_module syscall

Eugene Syromyatnikov evgsyr at gmail.com
Mon Oct 24 02:59:46 UTC 2016


Since create_module syscall is present only in kernels before Linux 2.6
and strace does not support those kernels, there is no use to keep this
parser any longer.

* bjm.c (SYS_FUNC(create_module)): Remove.
* linux/dummy.h (sys_create_module): Add stub alias.
---
 bjm.c         |    8 --------
 linux/dummy.h |    1 +
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/bjm.c b/bjm.c
index 7a72809..d7e241e 100644
--- a/bjm.c
+++ b/bjm.c
@@ -33,14 +33,6 @@
 
 #include "xlat/delete_module_flags.h"
 
-SYS_FUNC(create_module)
-{
-	printpath(tcp, tcp->u_arg[0]);
-	tprintf(", %lu", tcp->u_arg[1]);
-
-	return RVAL_DECODED | RVAL_HEX;
-}
-
 SYS_FUNC(delete_module)
 {
 	printstr(tcp, tcp->u_arg[0], -1);
diff --git a/linux/dummy.h b/linux/dummy.h
index 87d2127..49dcf16 100644
--- a/linux/dummy.h
+++ b/linux/dummy.h
@@ -134,6 +134,7 @@
 /* unimplemented */
 #define	sys_afs_syscall		printargs
 #define	sys_break		printargs
+#define	sys_create_module	printargs
 #define	sys_ftime		printargs
 #define	sys_get_kernel_syms	printargs
 #define	sys_getpmsg		printargs
-- 
1.7.10.4





More information about the Strace-devel mailing list