strace/linux
Dmitry V. Levin f1d0729f17 Implement arch specific methods of changing syscall number and error code
This introduces arch_set_error and arch_set_scno functions for each
supported architecture, needed to implement syscall fault injection.

* linux/aarch64/set_error.c: New file.
* linux/aarch64/set_scno.c: Likewise.
* linux/alpha/set_error.c: Likewise.
* linux/alpha/set_scno.c: Likewise.
* linux/arc/set_error.c: Likewise.
* linux/arc/set_scno.c: Likewise.
* linux/arm/set_error.c: Likewise.
* linux/arm/set_scno.c: Likewise.
* linux/avr32/set_error.c: Likewise.
* linux/avr32/set_scno.c: Likewise.
* linux/bfin/set_error.c: Likewise.
* linux/bfin/set_scno.c: Likewise.
* linux/crisv10/set_error.c: Likewise.
* linux/crisv10/set_scno.c: Likewise.
* linux/crisv32/set_error.c: Likewise.
* linux/crisv32/set_scno.c: Likewise.
* linux/hppa/set_error.c: Likewise.
* linux/hppa/set_scno.c: Likewise.
* linux/i386/set_error.c: Likewise.
* linux/i386/set_scno.c: Likewise.
* linux/ia64/set_error.c: Likewise.
* linux/ia64/set_scno.c: Likewise.
* linux/m68k/set_error.c: Likewise.
* linux/m68k/set_scno.c: Likewise.
* linux/metag/set_error.c: Likewise.
* linux/metag/set_scno.c: Likewise.
* linux/microblaze/set_error.c: Likewise.
* linux/microblaze/set_scno.c: Likewise.
* linux/mips/set_error.c: Likewise.
* linux/mips/set_scno.c: Likewise.
* linux/nios2/set_error.c: Likewise.
* linux/nios2/set_scno.c: Likewise.
* linux/or1k/set_error.c: Likewise.
* linux/or1k/set_scno.c: Likewise.
* linux/powerpc/set_error.c: Likewise.
* linux/powerpc/set_scno.c: Likewise.
* linux/powerpc64/set_error.c: Likewise.
* linux/powerpc64/set_scno.c: Likewise.
* linux/riscv/set_error.c: Likewise.
* linux/riscv/set_scno.c: Likewise.
* linux/s390/set_error.c: Likewise.
* linux/s390/set_scno.c: Likewise.
* linux/s390x/set_error.c: Likewise.
* linux/s390x/set_scno.c: Likewise.
* linux/sh/set_error.c: Likewise.
* linux/sh/set_scno.c: Likewise.
* linux/sh64/set_error.c: Likewise.
* linux/sh64/set_scno.c: Likewise.
* linux/sparc/set_error.c: Likewise.
* linux/sparc/set_scno.c: Likewise.
* linux/sparc64/set_error.c: Likewise.
* linux/sparc64/set_scno.c: Likewise.
* linux/tile/set_error.c: Likewise.
* linux/tile/set_scno.c: Likewise.
* linux/x32/set_error.c: Likewise.
* linux/x32/set_scno.c: Likewise.
* linux/x86_64/set_error.c: Likewise.
* linux/x86_64/set_scno.c: Likewise.
* linux/xtensa/set_error.c: Likewise.
* linux/xtensa/set_scno.c: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
2016-11-16 02:33:13 +00:00
..
32 Add support for pkey_mprotect, pkey_alloc, pkey_free syscalls 2016-11-13 21:41:58 +00:00
64 Add support for pkey_mprotect, pkey_alloc, pkey_free syscalls 2016-11-13 21:41:58 +00:00
aarch64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
alpha Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
arc Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
arm Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
avr32 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
bfin Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
crisv10 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
crisv32 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
hppa Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
i386 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
ia64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
m68k Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
metag Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
microblaze Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
mips Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
nios2 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
or1k Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
powerpc Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
powerpc64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
riscv Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
s390 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
s390x Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
sh Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
sh64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
sparc Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
sparc64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
tile Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
x32 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
x86_64 Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
xtensa Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
arch_regs.h Move regs-related macros and declarations from defs.h to regs.h 2015-02-13 18:28:08 +00:00
arch_sigreturn.c Fix build on architectures for which arch_sigreturn is not implemented 2015-12-09 11:46:43 +00:00
asm_stat.h Move redefinition of stat types to asm_stat.h 2016-08-24 12:10:55 +00:00
dummy.h Remove parser of create_module syscall 2016-10-29 02:54:01 +03:00
errnoent.h Change errnoent.h files to use designated initializers 2015-02-23 13:29:17 +00:00
getregs_old.h syscall.c: refactor getregs_old fallback in get_regs 2016-11-13 11:16:15 +00:00
inet_diag.h linux: add #include guards 2016-08-05 15:06:43 +00:00
mtd-abi.h Whitespace fix, no code changes 2013-02-14 13:39:53 +01:00
netlink_diag.h linux: add #include guards 2016-08-05 15:06:43 +00:00
personality.h Use prepared editions of recently imported linux headers 2014-02-05 12:56:26 +00:00
ptp_clock.h Decode ptp ioctls 2014-02-04 00:03:08 +00:00
signalent.h Regenerated 2001-08-03 21:51:48 +00:00
sock_diag.h linux: add #include guards 2016-08-05 15:06:43 +00:00
subcall.h linux/subcall.h: remove redundant definitions 2016-08-08 23:43:50 +00:00
syscall.h linux: add #include guards 2016-08-05 15:06:43 +00:00
ubi-user.h Use macros for gcc attributes 2015-03-30 00:33:06 +00:00
unix_diag.h linux: add #include guards 2016-08-05 15:06:43 +00:00
userent0.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00
userent.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00