glibc/sysdeps/unix/sysv/linux/s390
Stefan Liebler 2c80445787 S390: Fix tst-ptrace-singleblock if kernel does not support PTRACE_SINGLEBLOCK.
The request PTRACE_SINGLEBLOCK was introduced in Linux 3.15.  Thus the ptrace call
will fail on older kernels.
Thus the test is now testing PTRACE_SINGLEBLOCK with data argument pointing to a
buffer on stack which is assumed to fail.  If the request would be interpreted as
PTRACE_GETREGS, then the ptrace call will not fail and the regs are written to buf.

If we run with a kernel with support for PTRACE_SINGLEBLOCK a ptrace call with
data=NULL, returns zero with no error.  If we run with a kernel without support for
PTRACE_SINGLEBLOCK a ptrace call with data=NULL reports an error.
In the latter case, the test is just continuing with PTRACE_CONT.

ChangeLog:

	* sysdeps/unix/sysv/linux/s390/tst-ptrace-singleblock.c:
	Support running on kernels without PTRACE_SINGLEBLOCK.
2017-07-11 10:38:44 +02:00
..
bits S390: Add new hwcap values for new cpu architecture - arch12. 2017-06-27 17:09:42 +02:00
fpu
s390-32 Consolidate Linux fcntl implementation 2017-06-30 15:17:26 -03:00
s390-64 s390: optimize syscall function 2017-06-19 10:59:40 +02:00
sys Rename struct ucontext tag (bug 21457). 2017-06-26 22:03:58 +00:00
Implies
Makefile S390: Sync ptrace.h with kernel. [BZ #21539] 2017-06-19 16:27:25 +02:00
Versions
arch-fork.h
brk.c
configure
configure.ac
dl-cache.h
dl-procinfo.h Add include guards to dl-procinfo.h 2017-06-07 11:11:38 +05:30
elision-conf.c
elision-conf.h
elision-lock.c S390: Adjust lock elision code after review. 2017-01-20 09:53:04 +01:00
elision-timed.c
elision-trylock.c S390: Adjust lock elision code after review. 2017-01-20 09:53:04 +01:00
elision-unlock.c S390: Adjust lock elision code after review. 2017-01-20 09:53:04 +01:00
force-elision.h
htm.h S390: Adjust lock elision code after review. 2017-01-20 09:53:04 +01:00
init-first.c
jmp-unwind.c
kernel-features.h Consolidate Linux send implementation 2017-03-09 15:22:06 +01:00
ldconfig.h
ldd-rewrite.sed
libanl.abilist
libc-vdso.h
localplt.data
longjmp_chk.c
lowlevellock.h
mmap_internal.h Consolidate Linux mmap implementation (BZ#21270) 2017-04-12 11:04:28 -03:00
nldbl-abi.h
opensock.c
pt-longjmp.c
pt-vfork.S
pthread_mutex_cond_lock.c
pthread_mutex_lock.c
pthread_mutex_timedlock.c
pthread_mutex_trylock.c
readelflib.c
rt-sysdep.S
sa_len.c
semtimedop.c
sigcontextinfo.h
sysconf.c
system.c
tst-ptrace-singleblock.c S390: Fix tst-ptrace-singleblock if kernel does not support PTRACE_SINGLEBLOCK. 2017-07-11 10:38:44 +02:00
ucontext_i.sym