Home
last modified time | relevance | path

Searched refs:tracee (Results 1 – 11 of 11) sorted by relevance

/external/autotest/client/site_tests/security_ptraceRestrictions/src/
Dthread-prctl.c49 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/
DREADME-linux-ptrace16 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 …]
DNEWS272 macros of the tracee's architecture and personality.
281 be read from tracee's memory, strace now prints its address consistently.
314 * Fixed potential short read of strings from tracee's memory.
522 * strace no longer detaches from a tracee which is supposed
DChangeLog2647 tracee's memory, print the address. This behavior follows the kernel's
2948 strace used to call get_regs on every stop of a tracee, including cases
5858 will be delivered to the tracee.
6043 Do not silently truncate tracee addresses to current_wordsize.
6045 extension issues with tracee addresses, and invalid addresses should
6060 Do not silently truncate tracee addresses to current_wordsize.
6062 extension issues with tracee addresses, and invalid addresses should
6217 When sizeof(kernel_ureg_t) > sizeof(long), the tracee address passed
6219 and return EIO when the tracee address does not fit into unsigned long.
6389 arch_sigreturn: change tracee address type from long to unsigned long.
[all …]
DChangeLog-CVS1299 Block interrupting signals since the first tracee has been attached.
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_bpf.c1022 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/
Dseccomp_bpf.c1022 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/
Dseccomp_bpf_tests.c760 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-m32/
Dptrace.c109 int status, tracee, saved; in test_peeksiginfo() local
112 tracee = wait(&status); in test_peeksiginfo()
113 if (tracee <= 0) { in test_peeksiginfo()
/external/strace/tests-mx32/
Dptrace.c109 int status, tracee, saved; in test_peeksiginfo() local
112 tracee = wait(&status); in test_peeksiginfo()
113 if (tracee <= 0) { in test_peeksiginfo()
/external/strace/tests/
Dptrace.c109 int status, tracee, saved; in test_peeksiginfo() local
112 tracee = wait(&status); in test_peeksiginfo()
113 if (tracee <= 0) { in test_peeksiginfo()