From: Dmitry V. Levin Date: Wed, 9 Dec 2015 02:07:44 +0000 (+0000) Subject: ia64: print all ia32 syscalls using printargs X-Git-Tag: v4.11~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdd2f84d8f40ddc798457169801bf69ea31cf20a;p=strace ia64: print all ia32 syscalls using printargs Printing of ia32 syscalls on ia64 must have been broken for a long time. Do not pretend that it works, print ia32 syscalls using printargs instead. * linux/ia64/syscallent.h: Remove all redefinitions of sys_* macros. Stop including"../dummy.h". Include "../i386/syscallent.h" with SYS_FUNC_NAME macro temporarily redirected to printargs. --- diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h index ec7652ce..3bfa3479 100644 --- a/linux/ia64/syscallent.h +++ b/linux/ia64/syscallent.h @@ -30,205 +30,11 @@ * IA-32 syscalls that have pointer arguments which are incompatible * with 64-bit layout get redirected to printargs. */ -#define sys_getrlimit printargs -#define sys_afs_syscall printargs -#define sys_getpmsg printargs -#define sys_putpmsg printargs -#define sys_ugetrlimit printargs -#define sys_waitpid printargs -#define sys_time printargs -#define sys_break printargs -#define sys_oldstat printargs -#define sys_lseek printargs -#undef sys_stime -#define sys_stime printargs -#define sys_ptrace printargs -#define sys_oldfstat printargs -#define sys_pause printargs -#define sys_utime printargs -#define sys_stty printargs -#define sys_gtty printargs -#define sys_ftime printargs -#define sys_pipe printargs -#define sys_times printargs -#define sys_prof printargs -#define sys_signal printargs -#define sys_lock printargs -#define sys_ioctl printargs -#define sys_fcntl printargs -#define sys_mpx printargs -#define sys_ulimit printargs -#define sys_oldolduname printargs -#define sys_sigaction printargs -#define sys_siggetmask printargs -#define sys_sigsetmask printargs -#define sys_sigsuspend printargs -#define sys_sigpending printargs -#define sys_setrlimit printargs -#define sys_getrusage printargs -#define sys_gettimeofday printargs -#define sys_settimeofday printargs -#define sys_getgroups printargs -#define sys_setgroups printargs -#define sys_select printargs -#undef sys_oldlstat -#define sys_oldlstat printargs -#define sys_readdir printargs -#define sys_profil printargs -#define sys_statfs printargs -#define sys_fstatfs printargs -#define sys_ioperm printargs -#define sys_setitimer printargs -#define sys_getitimer printargs -#define sys_stat printargs -#undef sys_lstat -#define sys_lstat printargs -#define sys_fstat printargs -#define sys_olduname printargs -#define sys_iopl printargs -#define sys_idle printargs -#define sys_vm86old printargs -#define sys_wait4 printargs -#define sys_sysinfo printargs -#define sys_sigreturn printargs -#define sys_uname printargs -#define sys_modify_ldt printargs -#define sys_adjtimex printargs -#define sys_sigprocmask printargs -#define sys_create_module printargs -#define sys_init_module printargs -#define sys_get_kernel_syms printargs -#define sys_quotactl printargs -#define sys_bdflush printargs -#define sys_personality printargs -#define sys_getdents printargs -#define sys__newselect printargs -#define sys_msync printargs -#define sys_readv printargs -#define sys_writev printargs -#define sys__sysctl printargs -#define sys_sched_rr_get_interval printargs -#define sys_getresuid printargs -#define sys_vm86 printargs -#define sys_query_module printargs -#define sys_nfsservctl printargs -#define sys_rt_sigreturn printargs -#define sys_rt_sigaction printargs -#define sys_rt_sigprocmask printargs -#define sys_rt_sigtimedwait printargs -#define sys_rt_sigqueueinfo printargs -#define sys_rt_sigsuspend printargs -#define sys_pread printargs -#define sys_pwrite printargs -#define sys_sigaltstack printargs -#define sys_sendfile printargs -#define sys_truncate64 printargs -#define sys_ftruncate64 printargs -#define sys_stat64 printargs -#undef sys_lstat64 -#define sys_lstat64 printargs -#define sys_fstat64 printargs -#define sys_fcntl64 printargs - +#undef SYS_FUNC_NAME +#define SYS_FUNC_NAME(syscall_name) printargs #include "../i386/syscallent.h" - -#undef sys_getrlimit -#undef sys_afs_syscall -#undef sys_getpmsg -#undef sys_putpmsg -#undef sys_ugetrlimit -#undef sys_waitpid -#undef sys_time -#undef sys_break -#undef sys_oldstat -#undef sys_lseek -#undef sys_stime -#undef sys_ptrace -#undef sys_oldfstat -#undef sys_pause -#undef sys_utime -#undef sys_stty -#undef sys_gtty -#undef sys_ftime -#undef sys_pipe -#undef sys_times -#undef sys_prof -#undef sys_signal -#undef sys_lock -#undef sys_ioctl -#undef sys_fcntl -#undef sys_mpx -#undef sys_ulimit -#undef sys_oldolduname -#undef sys_sigaction -#undef sys_siggetmask -#undef sys_sigsetmask -#undef sys_sigsuspend -#undef sys_sigpending -#undef sys_setrlimit -#undef sys_getrusage -#undef sys_gettimeofday -#undef sys_settimeofday -#undef sys_getgroups -#undef sys_setgroups -#undef sys_select -#undef sys_oldlstat -#undef sys_readdir -#undef sys_profil -#undef sys_statfs -#undef sys_fstatfs -#undef sys_ioperm -#undef sys_setitimer -#undef sys_getitimer -#undef sys_stat -#undef sys_lstat -#undef sys_fstat -#undef sys_olduname -#undef sys_iopl -#undef sys_idle -#undef sys_vm86old -#undef sys_wait4 -#undef sys_sysinfo -#undef sys_sigreturn -#undef sys_uname -#undef sys_modify_ldt -#undef sys_adjtimex -#undef sys_sigprocmask -#undef sys_create_module -#undef sys_init_module -#undef sys_get_kernel_syms -#undef sys_quotactl -#undef sys_bdflush -#undef sys_personality -#undef sys_getdents -#undef sys__newselect -#undef sys_msync -#undef sys_readv -#undef sys_writev -#undef sys__sysctl -#undef sys_sched_rr_get_interval -#undef sys_getresuid -#undef sys_vm86 -#undef sys_query_module -#undef sys_nfsservctl -#undef sys_rt_sigreturn -#undef sys_rt_sigaction -#undef sys_rt_sigprocmask -#undef sys_rt_sigtimedwait -#undef sys_rt_sigqueueinfo -#undef sys_rt_sigsuspend -#undef sys_pread -#undef sys_pwrite -#undef sys_sigaltstack -#undef sys_sendfile -#undef sys_truncate64 -#undef sys_ftruncate64 -#undef sys_stat64 -#undef sys_lstat64 -#undef sys_fstat64 -#undef sys_fcntl64 - -#include "../dummy.h" +#undef SYS_FUNC_NAME +#define SYS_FUNC_NAME(syscall_name) MPERS_FUNC_NAME(sys_ ## syscall_name) /* You must be careful to check ../i386/syscallent.h so that this table starts where that one leaves off.