Lines Matching refs:tracee

1511 			   pid_t tracee, int status, void *args);
1513 void start_tracer(struct __test_metadata *_metadata, int fd, pid_t tracee,
1527 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0);
1529 kill(tracee, SIGKILL);
1534 ret = ptrace(PTRACE_SETOPTIONS, tracee, NULL, ptrace_syscall ?
1539 kill(tracee, SIGKILL);
1542 tracee, NULL, 0);
1545 /* Unblock the tracee */
1553 if (wait(&status) != tracee)
1572 tracer_func(_metadata, tracee, status, args);
1575 tracee, NULL, 0);
1591 pid_t tracee = getpid();
1602 start_tracer(_metadata, pipefd[1], tracee, func, args,
1635 void tracer_poke(struct __test_metadata *_metadata, pid_t tracee, int status,
1642 ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg);
1646 kill(tracee, SIGKILL);
1653 ret = ptrace(PTRACE_POKEDATA, tracee, info->poke_addr, 0x1001);
1742 EXPECT_EQ(0, ptrace(PTRACE_SET_SYSCALL, tracee, NULL, _nr))
1756 EXPECT_EQ(0, ptrace(PTRACE_SETREGSET, tracee, \
1918 # define ARCH_GETREGS(_regs) ptrace(PTRACE_GETREGS, tracee, 0, &(_regs))
1919 # define ARCH_SETREGS(_regs) ptrace(PTRACE_SETREGS, tracee, 0, &(_regs))
1925 ptrace(PTRACE_GETREGSET, tracee, NT_PRSTATUS, &__v); \
1931 ptrace(PTRACE_SETREGSET, tracee, NT_PRSTATUS, &__v); \
1936 int get_syscall(struct __test_metadata *_metadata, pid_t tracee)
1949 pid_t tracee, long *syscall, long *ret)
1975 pid_t tracee, long syscall)
1977 __change_syscall(_metadata, tracee, &syscall, NULL);
1982 pid_t tracee, long ret)
1986 __change_syscall(_metadata, tracee, &syscall, &ret);
1989 void tracer_seccomp(struct __test_metadata *_metadata, pid_t tracee,
2001 ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg);
2008 EXPECT_EQ(__NR_getpid, get_syscall(_metadata, tracee));
2009 change_syscall_nr(_metadata, tracee, __NR_getppid);
2013 EXPECT_EQ(__NR_gettid, get_syscall(_metadata, tracee));
2014 change_syscall_ret(_metadata, tracee, 45000);
2018 EXPECT_EQ(__NR_openat, get_syscall(_metadata, tracee));
2019 change_syscall_ret(_metadata, tracee, -ESRCH);
2023 EXPECT_EQ(__NR_getppid, get_syscall(_metadata, tracee));
2028 kill(tracee, SIGKILL);
2040 void tracer_ptrace(struct __test_metadata *_metadata, pid_t tracee,
2062 ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg);
2075 self->syscall_nr = get_syscall(_metadata, tracee);
2106 __change_syscall(_metadata, tracee, syscall_nr, syscall_ret);