/tools/testing/selftests/powerpc/signal/ |
D | sigfuz.c | 91 ucontext_t *ucp = uc; in trap_signal_handler() local 93 ucp->uc_link = tmp_uc; in trap_signal_handler() 102 memset(ucp->uc_link, rand(), sizeof(ucontext_t)); in trap_signal_handler() 104 memcpy(ucp->uc_link, uc, sizeof(ucontext_t)); in trap_signal_handler() 111 ucp->uc_link = tmp_uc; in trap_signal_handler() 113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler() 119 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler() 122 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler() 125 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] |= in trap_signal_handler() 132 ucp->uc_mcontext.gp_regs[PT_MSR] |= MSR_TS_S; in trap_signal_handler() [all …]
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 52 ucontext_t *ucp = uc; in usr_signal_handler() local 60 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler() 63 if (ucp->uc_link == (void *)-1) { in usr_signal_handler() 69 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler() 75 memcpy(&ucp->uc_link->uc_mcontext, &ucp->uc_mcontext, in usr_signal_handler() 76 sizeof(ucp->uc_mcontext)); in usr_signal_handler() 79 UCONTEXT_MSR(ucp) |= MSR_TS_S; in usr_signal_handler()
|
D | tm-signal-msr-resv.c | 35 ucontext_t *ucp = uc; in signal_usr1() local 38 ucp->uc_link = ucp; in signal_usr1() 41 ucp->uc_mcontext.gp_regs[PT_MSR] |= (7ULL << 32); in signal_usr1() 43 ucp->uc_mcontext.uc_regs->gregs[PT_MSR] |= (7ULL); in signal_usr1()
|
D | tm-trap.c | 63 ucontext_t *ucp = uc; in trap_signal_handler() local 67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler() 116 ucp->uc_mcontext.gp_regs[PT_NIP] += 16; in trap_signal_handler() 123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler() 124 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in trap_signal_handler() 141 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler() 171 ucp->uc_mcontext.gp_regs[PT_MSR] &= ~1UL; in trap_signal_handler() 172 ucp->uc_mcontext.gp_regs[PT_NIP] += 8; in trap_signal_handler()
|
D | tm-signal-pagefault.c | 199 ucontext_t *ucp = uc; in signal_handler() local 202 ucp->uc_link->uc_mcontext.regs->nip += 4; in signal_handler() 204 ucp->uc_mcontext.v_regs = in signal_handler() 205 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_mcontext.v_regs); in signal_handler() 207 ucp->uc_link->uc_mcontext.v_regs = in signal_handler() 208 get_uf_mem(sizeof(elf_vrreg_t), ucp->uc_link->uc_mcontext.v_regs); in signal_handler() 210 ucp->uc_link = get_uf_mem(sizeof(ucontext_t), ucp->uc_link); in signal_handler()
|
D | tm-signal-context-chk-gpr.c | 52 ucontext_t *ucp = uc; in signal_usr1() local 53 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 57 fail = (ucp->uc_mcontext.gp_regs[R14 + i] != gprs[i]); in signal_usr1() 61 R14 + i, ucp->uc_mcontext.gp_regs[R14 + i], gprs[i]); in signal_usr1()
|
D | tm-signal-context-chk-fpu.c | 50 ucontext_t *ucp = uc; in signal_usr1() local 51 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1() 59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1()
|
D | tm-signal-context-chk-vmx.c | 59 ucontext_t *ucp = uc; in signal_usr1() local 60 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 64 fail = memcmp(ucp->uc_mcontext.v_regs->vrregs[VMX20 + i], in signal_usr1() 71 printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
|
D | tm-signal-context-chk-vsx.c | 62 ucontext_t *ucp = uc; in signal_usr1() local 63 ucontext_t *tm_ucp = ucp->uc_link; in signal_usr1() 96 long *vsx_ptr = (long *)(ucp->uc_mcontext.v_regs + 1); in signal_usr1() 106 memcpy(vsx, &ucp->uc_mcontext.fp_regs[FPR20 + i], 8); in signal_usr1()
|
D | tm-signal-sigreturn-nt.c | 22 ucontext_t *ucp = (ucontext_t *) uc; in trap_signal_handler() local 27 ucp->uc_mcontext.regs->nip += 4; in trap_signal_handler()
|
/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.h | 41 #define GET_UCP_RESV_SIZE(ucp) \ argument 42 sizeof((ucp)->uc_mcontext.__reserved)
|
/tools/testing/selftests/powerpc/alignment/ |
D | alignment_handler.c | 62 ucontext_t *ucp = ctx; in sighandler() local 71 u32 inst = *(u32 *)ucp->uc_mcontext.gp_regs[PT_NIP]; in sighandler() 72 ucp->uc_mcontext.gp_regs[PT_NIP] += ((inst >> 26 == 1) ? 8 : 4); in sighandler() 74 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in sighandler() 77 ucp->uc_mcontext.uc_regs->gregs[PT_NIP] += 4; in sighandler()
|