/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
D | thread-prctl.c | 49 pid_t tracer, tracee; variable 88 printf("tracer to PTRACE_ATTACH my tracee %d\n", tracee); in tracer_main() 89 ptrace_result = ptrace(PTRACE_ATTACH, tracee, NULL, NULL); in tracer_main() 99 waitpid(tracee, NULL, 0); in tracer_main() 102 ptrace_result = ptrace(PTRACE_CONT, tracee, NULL, NULL); in tracer_main() 123 tracee = getpid(); in tracee_main() 126 printf("tracee %d reading tracer pid\n", tracee); in tracee_main() 136 printf("tracee %d started (expecting %d as tracer)\n", tracee, tracer); in tracee_main() 170 tracee = fork(); in start_tracee() 171 if (tracee < 0) { in start_tracee() [all …]
|
/external/strace/ |
D | README-linux-ptrace | 16 debugged. Therefore, "tracee" always means "(one) thread", never "a 18 a specific tracee using ptrace(PTRACE_foo, pid, ...), where pid is a 21 After attachment, each tracee can be in two states: running or stopped. 23 There are many kinds of states when tracee is stopped, and in ptrace 27 In this document, any stopped state in which tracee is ready to accept 38 not a ptrace-stop (because tracer can't query tracee status such as 39 register contents, cannot restart tracee etc) but the notification 44 tracee only), and only after it is injected by tracer (or after it was 55 Tracer can kill a tracee with ptrace(PTRACE_KILL, pid, 0, 0). This 61 When tracee executes exit syscall, it reports its death to its tracer. [all …]
|
D | NEWS | 185 macros of the tracee's architecture and personality. 194 be read from tracee's memory, strace now prints its address consistently. 227 * Fixed potential short read of strings from tracee's memory. 435 * strace no longer detaches from a tracee which is supposed
|
D | ChangeLog | 1312 will be delivered to the tracee. 1497 Do not silently truncate tracee addresses to current_wordsize. 1499 extension issues with tracee addresses, and invalid addresses should 1514 Do not silently truncate tracee addresses to current_wordsize. 1516 extension issues with tracee addresses, and invalid addresses should 1671 When sizeof(kernel_ureg_t) > sizeof(long), the tracee address passed 1673 and return EIO when the tracee address does not fit into unsigned long. 1843 arch_sigreturn: change tracee address type from long to unsigned long. 2085 process: change tracee address type from unsigned long to kernel_ureg_t. 2113 desc: change tracee address type from long to kernel_ureg_t. [all …]
|
D | ChangeLog-CVS | 1299 Block interrupting signals since the first tracee has been attached.
|
/external/linux-kselftest/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 1022 pid_t tracee, int status, void *args); 1024 void start_tracer(struct __test_metadata *_metadata, int fd, pid_t tracee, in start_tracer() argument 1038 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0); in start_tracer() 1040 kill(tracee, SIGKILL); in start_tracer() 1045 ret = ptrace(PTRACE_SETOPTIONS, tracee, NULL, ptrace_syscall ? in start_tracer() 1050 kill(tracee, SIGKILL); in start_tracer() 1053 tracee, NULL, 0); in start_tracer() 1064 if (wait(&status) != tracee) in start_tracer() 1073 tracer_func(_metadata, tracee, status, args); in start_tracer() 1076 tracee, NULL, 0); in start_tracer() [all …]
|
/external/seccomp-tests/linux/ |
D | seccomp_bpf.c | 1022 pid_t tracee, int status, void *args); 1024 void tracer(struct __test_metadata *_metadata, int fd, pid_t tracee, in tracer() argument 1038 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0); in tracer() 1040 kill(tracee, SIGKILL); in tracer() 1045 ret = ptrace(PTRACE_SETOPTIONS, tracee, NULL, PTRACE_O_TRACESECCOMP); in tracer() 1048 kill(tracee, SIGKILL); in tracer() 1050 ptrace(PTRACE_CONT, tracee, NULL, 0); in tracer() 1060 if (wait(&status) != tracee) in tracer() 1069 tracer_func(_metadata, tracee, status, args); in tracer() 1071 ret = ptrace(PTRACE_CONT, tracee, NULL, NULL); in tracer() [all …]
|
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/ |
D | seccomp_bpf_tests.c | 760 void tracer(struct __test_metadata *_metadata, pid_t tracee, in tracer() argument 773 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0); in tracer() 776 kill(tracee, SIGKILL); in tracer() 781 ret = ptrace(PTRACE_SETOPTIONS, tracee, NULL, PTRACE_O_TRACESECCOMP); in tracer() 784 kill(tracee, SIGKILL); in tracer() 786 ptrace(PTRACE_CONT, tracee, NULL, 0); in tracer() 796 if (wait(&status) != tracee) in tracer() 805 ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg); in tracer() 809 kill(tracee, SIGKILL); in tracer() 816 ret = ptrace(PTRACE_POKEDATA, tracee, poke_addr, 0x1001); in tracer() [all …]
|
/external/strace/tests-mx32/ |
D | ptrace.c | 110 int status, tracee, saved; in test_peeksiginfo() local 113 tracee = wait(&status); in test_peeksiginfo() 114 if (tracee <= 0) { in test_peeksiginfo()
|
/external/strace/tests/ |
D | ptrace.c | 110 int status, tracee, saved; in test_peeksiginfo() local 113 tracee = wait(&status); in test_peeksiginfo() 114 if (tracee <= 0) { in test_peeksiginfo()
|
/external/strace/tests-m32/ |
D | ptrace.c | 110 int status, tracee, saved; in test_peeksiginfo() local 113 tracee = wait(&status); in test_peeksiginfo() 114 if (tracee <= 0) { in test_peeksiginfo()
|