diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2015-04-07 01:36:50 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2015-04-07 11:22:49 +0000 |
commit | a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b (patch) | |
tree | d4a8cf7e8b95d626a6c916c4a325dfa23e89a52d /bjm.c | |
parent | cc59f14fb8eb951f41c8d823ba35c3b636092cd4 (diff) | |
download | strace-a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b.tar.gz |
Declare syscall parsers using SYS_FUNC macro
Introduce SYS_FUNC macro to declare and define all syscall parsers.
* Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h.
(sys_func.h): New rule.
* defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros.
* linux/syscall.h: Include "sys_func.h".
[NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers.
Remove other declarations.
* linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs
and osf_fstatfs syscall parsers.
* *.c: Use SYS_FUNC to define syscall parsers.
Diffstat (limited to 'bjm.c')
-rw-r--r-- | bjm.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -72,8 +72,7 @@ struct module_info #include "xlat/modflags.h" #include "xlat/delete_module_flags.h" -int -sys_query_module(struct tcb *tcp) +SYS_FUNC(query_module) { if (entering(tcp)) { printstr(tcp, tcp->u_arg[0], -1); @@ -163,8 +162,7 @@ sys_query_module(struct tcb *tcp) return 0; } -int -sys_create_module(struct tcb *tcp) +SYS_FUNC(create_module) { if (entering(tcp)) { printpath(tcp, tcp->u_arg[0]); @@ -173,8 +171,7 @@ sys_create_module(struct tcb *tcp) return RVAL_HEX; } -int -sys_delete_module(struct tcb *tcp) +SYS_FUNC(delete_module) { if (entering(tcp)) { printstr(tcp, tcp->u_arg[0], -1); @@ -184,8 +181,7 @@ sys_delete_module(struct tcb *tcp) return 0; } -int -sys_init_module(struct tcb *tcp) +SYS_FUNC(init_module) { if (entering(tcp)) { tprintf("%#lx, %lu, ", tcp->u_arg[0], tcp->u_arg[1]); @@ -199,8 +195,7 @@ sys_init_module(struct tcb *tcp) #include "xlat/module_init_flags.h" -int -sys_finit_module(struct tcb *tcp) +SYS_FUNC(finit_module) { if (exiting(tcp)) return 0; |