linux/tools/testing/selftests
Suraj Jitindar Singh a4cf0a2e1d selftests/powerpc: Remove -flto from common CFLAGS
LTO can cause GCC to inline some functions which have attributes set.
The act of inlining the functions can lead to GCC forgetting about the
attributes which leads to incorrect tests.

Notable example being: __attribute__((__target__("no-vsx")))

LTO can also interact strangely with custom assembly functions and cause
tests to intermittently fail.

Both these cases are hard to detect and require manual inspection of
binaries which is unlikely to happen for all tests. Furthermore, LTO
optimisations are not necessary for selftests and correctness is
paramount and as such it is best to disable LTO.

LTO can be enabled on a per test basis.

A pseries_le_defconfig kernel on a POWER8 was used to determine that the
same subset of selftests pass and fail with and without -flto in the
common Makefile.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-03-02 23:34:46 +11:00
..
breakpoints add breakpoints/.gitignore 2016-01-07 13:38:24 -07:00
capabilities selftests/capabilities: clean up for Makefile 2015-11-23 13:20:10 -07:00
cpu-hotplug
efivarfs selftests: add .gitignore for efivarfs 2015-10-15 20:00:32 -06:00
exec selftests: exec: revert to default emit rule 2015-09-14 16:45:05 -06:00
firmware selftests: firmware: add empty string and async tests 2016-01-07 14:41:07 -07:00
ftrace ftracetest: Add instance create and delete test 2015-11-24 09:29:14 -05:00
futex tools:testing/selftests: fix typo in futex/README 2015-11-16 19:22:49 -07:00
intel_pstate tools, testing, add test for intel_pstate driver 2015-11-23 13:30:59 -07:00
ipc
kcmp
lib selftests: run lib/test_printf module 2015-11-06 17:50:42 -08:00
membarrier membarrier: clean up selftest 2015-09-22 15:09:53 -07:00
memfd selftests: Make scripts executable 2015-11-03 16:54:57 -07:00
memory-hotplug
mount
mqueue selftests: Add missing #include directives 2015-11-03 16:53:53 -07:00
net soreuseport: pass skb to secondary UDP socket lookup 2016-01-06 01:28:04 -05:00
powerpc selftests/powerpc: Remove -flto from common CFLAGS 2016-03-02 23:34:46 +11:00
pstore selftests/pstore: add pstore test scripts going with reboot 2015-10-15 20:00:32 -06:00
ptrace add ptrace/.gitignore 2016-01-07 13:38:11 -07:00
rcutorture torture: Place console.log files correctly from the get-go 2015-12-05 17:58:34 -08:00
seccomp linux-kselftest-4.5-rc1 2016-01-17 13:31:50 -08:00
size
static_keys selftests: Make scripts executable 2015-11-03 16:54:57 -07:00
sysctl
timers Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-01-31 15:49:06 -08:00
user
vm update .gitignore in selftests/vm 2016-01-07 13:37:41 -07:00
x86 selftests/x86: Test __kernel_sigreturn and __kernel_rt_sigreturn 2016-01-13 10:34:40 +01:00
zram seltests/zram: fix syntax error 2015-09-14 16:40:57 -06:00
gen_kselftest_tar.sh
kselftest_install.sh
kselftest.h
lib.mk selftests: change install command to rsync 2015-09-14 16:43:51 -06:00
Makefile selftest/ipc: actually test it 2015-11-23 13:21:15 -07:00