mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
a003365cab
Add TM selftest to check if FP or VEC register values from one process can leak into another process when both run on the same CPU. Signed-off-by: Gustavo Romero <gromero@linux.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190904045529.23002-3-gromero@linux.vnet.ibm.com
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu \
|
|
tm-signal-context-chk-vmx tm-signal-context-chk-vsx
|
|
|
|
TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
|
|
tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \
|
|
$(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \
|
|
tm-signal-context-force-tm tm-poison
|
|
|
|
top_srcdir = ../../../../..
|
|
include ../../lib.mk
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c ../utils.c
|
|
|
|
CFLAGS += -mhtm
|
|
|
|
$(OUTPUT)/tm-syscall: tm-syscall-asm.S
|
|
$(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
|
|
$(OUTPUT)/tm-tmspr: CFLAGS += -pthread
|
|
$(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
|
|
$(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
|
|
$(OUTPUT)/tm-unavailable: CFLAGS += -O0 -pthread -m64 -Wno-error=uninitialized -mvsx
|
|
$(OUTPUT)/tm-trap: CFLAGS += -O0 -pthread -m64
|
|
$(OUTPUT)/tm-signal-context-force-tm: CFLAGS += -pthread -m64
|
|
|
|
SIGNAL_CONTEXT_CHK_TESTS := $(patsubst %,$(OUTPUT)/%,$(SIGNAL_CONTEXT_CHK_TESTS))
|
|
$(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S
|
|
$(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx
|