linux/tools/testing/selftests
Andrii Nakryiko 2b5cf9fb74 selftests/bpf: Guarantee that useep() calls nanosleep() syscall
Some implementations of C runtime library won't call nanosleep() syscall from
usleep(). But a bunch of kprobe/tracepoint selftests rely on nanosleep being
called to trigger them. To make this more reliable, "override" usleep
implementation and call nanosleep explicitly.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Julia Kartseva <hex@fb.com>
Link: https://lore.kernel.org/bpf/20200311185345.3874602-1-andriin@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2020-03-13 12:49:51 -07:00
..
android
arm64
bpf selftests/bpf: Guarantee that useep() calls nanosleep() syscall 2020-03-13 12:49:51 -07:00
breakpoints
capabilities
cgroup selftests: Uninitialized variable in test_cgcore_proc_migration() 2020-01-09 16:21:23 -07:00
clone3
cpu-hotplug
cpufreq
dmabuf-heaps dma-buf: heaps: Use _IOCTL_ for userspace IOCTL identifier 2019-12-17 21:37:40 +05:30
drivers selftests: mlxsw: resource_scale: Invoke for Spectrum-3 2020-02-27 11:10:15 -08:00
efivarfs
exec
filesystems selftests: filesystems/epoll: fix build error 2019-12-23 10:52:40 -07:00
firmware selftests: firmware: Fix it to do root uid check and skip 2019-12-23 10:52:40 -07:00
ftrace selftests: Install settings files to fix TIMEOUT failures 2020-02-20 08:56:42 -07:00
futex selftests: use LDLIBS for libraries instead of LDFLAGS 2020-02-13 13:14:34 -07:00
gpio
ia64
intel_pstate
ipc
ir
kcmp
kexec
kmod
kselftest selftests: settings: tests can be in subsubdirs 2020-01-27 10:49:52 -07:00
kvm selftests: KVM: Remove unused x86_register enum 2020-02-12 20:09:45 +01:00
lib
livepatch selftests: Install settings files to fix TIMEOUT failures 2020-02-20 08:56:42 -07:00
lkdtm selftests/lkdtm: Add tests for LKDTM targets 2020-01-10 14:50:28 -07:00
locking
media_tests
membarrier
memfd memfd: add test for COW on MAP_PRIVATE and F_SEAL_FUTURE_WRITE mappings 2019-12-01 12:59:03 -08:00
memory-hotplug
mount
mqueue
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-02-27 18:31:39 -08:00
netfilter selftests: nft_concat_range: Add test for reported add/flush/add issue 2020-02-26 14:33:09 +01:00
networking/timestamping
nsfs
ntb
openat2 selftests: openat2: fix build error on newer glibc 2020-02-13 13:15:45 -07:00
pidfd test: Add test for pidfd getfd 2020-01-13 21:49:54 +01:00
powerpc selftests/eeh: Bump EEH wait time to 60s 2020-01-26 00:11:37 +11:00
prctl
proc
pstore
ptp
ptrace
rcutorture torture: Hoist calls to lscpu to higher-level kvm.sh script 2019-12-09 13:00:30 -08:00
rseq selftests/rseq: Fix out-of-tree compilation 2020-02-20 08:57:12 -07:00
rtc selftests: Install settings files to fix TIMEOUT failures 2020-02-20 08:56:42 -07:00
safesetid selftests: safesetid: Fix Makefile to set correct test program 2019-12-09 10:53:04 -07:00
seccomp selftests/seccomp: Catch garbage on SECCOMP_IOCTL_NOTIF_RECV 2020-01-02 13:15:45 -08:00
sigaltstack
size kselftest: Minimise dependency of get_size on C library interfaces 2020-01-16 13:08:26 -07:00
sparc64
splice
static_keys
sync
sysctl
tc-testing tc-testing: updated tdc tests for basic filter with u32 extended match rules 2020-02-23 20:41:37 -08:00
timens selftests: use LDLIBS for libraries instead of LDFLAGS 2020-02-13 13:14:34 -07:00
timers
tmpfs
tpm2 Kernel selftests: tpm2: check for tpm support 2020-02-10 18:00:40 -07:00
uevent
user
vDSO
vm selftests/vm: add missed tests in run_vmtests 2020-02-21 11:22:15 -08:00
watchdog
wireguard wireguard: selftests: reduce complexity and fix make races 2020-02-16 19:21:56 -08:00
x86 selftests/x86/single_step_syscall: Check SYSENTER directly 2019-11-26 21:53:34 +01:00
zram
.gitignore selftests/bpf: Add test for "bpftool feature" command 2020-02-26 18:34:34 +01:00
gen_kselftest_tar.sh
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
kselftest.h
lib.mk selftests: fix too long argument 2020-02-10 18:01:55 -07:00
Makefile selftests: allow detection of build failures 2020-02-10 18:01:25 -07:00