From: Dmitry V. Levin Date: Mon, 6 May 2013 23:34:03 +0000 (+0000) Subject: linux/syscall.h: make subcall decoding configuration more readable X-Git-Tag: v4.8~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=828bbd846ef26894b5b9f9e25d7cf302e895d2a2;p=strace linux/syscall.h: make subcall decoding configuration more readable * linux/syscall.h: Inverse and sort the subcall ifdef, add a comment why subcall decoding support is not enabled on some architectures. --- diff --git a/linux/syscall.h b/linux/syscall.h index 878732da..5247df4a 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -313,14 +313,20 @@ int sys_osf_utimes(); int sys_osf_wait4(); #endif -#if !defined(ALPHA) \ - && !defined(MIPS) \ - && !defined(HPPA) \ - && !defined(__ARM_EABI__) \ - && !defined(BFIN) \ - && !defined(TILE) \ - && !defined(XTENSA) -# if defined(SPARC) || defined(SPARC64) +#if defined ALPHA \ + || defined __ARM_EABI__ \ + || defined BFIN \ + || defined HPPA \ + || defined MIPS \ + || defined TILE \ + || defined XTENSA +/* + * This architecture does not have a socketcall or ipc subcall, + * it has dedicated syscalls instead, so there is no need + * to implement socket or ipc subcall decoding. + */ +#else +# if defined SPARC || defined SPARC64 # define SYS_socket_subcall 353 # else # define SYS_socket_subcall 400