]> granicus.if.org Git - strace/commitdiff
aarch64, arm, sparc: add comments on fault injection support in kernel
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 28 Nov 2016 19:46:50 +0000 (19:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 28 Nov 2016 19:46:50 +0000 (19:46 +0000)
* linux/aarch64/set_scno.c: Note the kernel commit that introduced
NT_ARM_SYSTEM_CALL support.
* linux/arm/set_scno.c: Note the kernel commit that introduced
PTRACE_SET_SYSCALL support.
* linux/sparc/set_scno.c: Note the kernel commit that introduced
reloading from the syscall number register.

linux/aarch64/set_scno.c
linux/arm/set_scno.c
linux/sparc/set_scno.c

index 70e0a172520cec27d7278eb512e7c469c50837c0..24498d50d665bbc6f08c16bf92482f660f27ca00 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef NT_ARM_SYSTEM_CALL
 # define NT_ARM_SYSTEM_CALL 0x404
 #endif
+/*
+ * NT_ARM_SYSTEM_CALL regset is supported by linux kernel
+ * starting with commit v3.19-rc1~59^2~16.
+ */
 
 static int
 arch_set_scno(struct tcb *tcp, long scno)
index f99a7fbf453c93967dc1ae2c764df59695cdd938..928f1e923b747722fa23b1c2ed5420f52242d3ec 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef PTRACE_SET_SYSCALL
 # define PTRACE_SET_SYSCALL 23
 #endif
+/*
+ * PTRACE_SET_SYSCALL is supported by linux kernel
+ * starting with commit v2.6.16-rc1~107^2
+ */
 
 static int
 arch_set_scno(struct tcb *tcp, long scno)
index 0f8c4ace1bcffbb0cd2852042279bb173a91cfce..bba124a8b655373ecb864e7f1d70da17e02b0aef 100644 (file)
@@ -1,3 +1,8 @@
+/*
+ * Reloading the syscall number from %g1 register is supported
+ * by linux kernel starting with commit v4.5-rc7~35^2~3.
+ */
+
 static int
 arch_set_scno(struct tcb *tcp, long scno)
 {