mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-15 03:06:24 +07:00
dd9bda4780
If a thread receives a signal while transactional the kernel creates a second context to show the transactional state of the process. This test loads some known values and waits for a signal and confirms that the expected values are in the signal context. Signed-off-by: Cyril Bur <cyrilbur@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
24 lines
618 B
Makefile
24 lines
618 B
Makefile
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_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
|
|
tm-vmxcopy tm-fork tm-tar tm-tmspr $(SIGNAL_CONTEXT_CHK_TESTS)
|
|
|
|
all: $(TEST_PROGS)
|
|
|
|
$(TEST_PROGS): ../harness.c ../utils.c
|
|
|
|
CFLAGS += -mhtm
|
|
|
|
tm-syscall: tm-syscall-asm.S
|
|
tm-syscall: CFLAGS += -I../../../../../usr/include
|
|
tm-tmspr: CFLAGS += -pthread
|
|
|
|
$(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S
|
|
$(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx
|
|
|
|
include ../../lib.mk
|
|
|
|
clean:
|
|
rm -f $(TEST_PROGS) *.o
|