John Baldwin
8d570f64aa
Add a mask of optional ptrace() events.
...
ptrace() now stores a mask of optional events in p_ptevents. Currently
this mask is a single integer, but it can be expanded into an array of
integers in the future.
Two new ptrace requests can be used to manipulate the event mask:
PT_GET_EVENT_MASK fetches the current event mask and PT_SET_EVENT_MASK
sets the current event mask.
The current set of events include:
- PTRACE_EXEC: trace calls to execve().
- PTRACE_SCE: trace system call entries.
- PTRACE_SCX: trace syscam call exits.
- PTRACE_FORK: trace forks and auto-attach to new child processes.
- PTRACE_LWP: trace LWP events.
The S_PT_SCX and S_PT_SCE events in the procfs p_stops flags have
been replaced by PTRACE_SCE and PTRACE_SCX. PTRACE_FORK replaces
P_FOLLOW_FORK and PTRACE_LWP replaces P2_LWP_EVENTS.
The PT_FOLLOW_FORK and PT_LWP_EVENTS ptrace requests remain for
compatibility but now simply toggle corresponding flags in the
event mask.
While here, document that PT_SYSCALL, PT_TO_SCE, and PT_TO_SCX both
modify the event mask and continue the traced process.
Reviewed by: kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D7044
2016-07-15 15:32:09 +00:00
..
2016-06-05 16:07:57 +00:00
2016-05-18 04:35:58 +00:00
2015-08-14 22:57:13 +00:00
2016-01-09 20:18:53 +00:00
2016-04-29 22:15:33 +00:00
2016-07-14 23:20:05 +00:00
2015-06-10 10:48:12 +00:00
2016-04-29 22:15:33 +00:00
2016-07-11 21:25:28 +00:00
2016-07-10 13:42:33 +00:00
2016-03-11 23:18:06 +00:00
2016-05-18 03:55:54 +00:00
2016-05-14 18:22:52 +00:00
2016-04-29 22:15:33 +00:00
2016-01-07 20:08:02 +00:00
2015-05-22 17:05:21 +00:00
2016-05-14 18:22:52 +00:00
2016-04-09 13:58:04 +00:00
2016-07-10 08:04:02 +00:00
2016-04-19 23:48:27 +00:00
2016-04-15 03:09:55 +00:00
2016-07-01 20:11:28 +00:00
2016-07-15 15:32:09 +00:00
2016-07-15 15:32:09 +00:00
2016-06-09 13:17:08 +00:00
2016-04-19 23:48:27 +00:00
2016-07-15 15:32:09 +00:00
2015-04-22 14:38:58 +00:00
2016-06-21 13:48:49 +00:00
2015-07-21 14:39:34 +00:00
2016-06-09 21:59:11 +00:00
2016-06-16 12:05:44 +00:00
2016-01-31 17:32:20 +00:00
2016-04-19 23:48:27 +00:00
2016-06-09 18:27:41 +00:00
2016-06-01 18:32:20 +00:00
2016-06-26 20:08:42 +00:00
2015-07-19 22:24:33 +00:00
2015-11-15 12:10:51 +00:00
2016-05-20 04:45:08 +00:00
2016-05-18 04:35:58 +00:00
2016-02-23 23:37:10 +00:00
2015-10-10 09:21:55 +00:00
2016-04-29 22:15:33 +00:00
2016-07-05 17:59:04 +00:00
2016-06-28 16:43:23 +00:00
2015-07-11 15:21:37 +00:00
2016-04-26 19:57:35 +00:00
2016-04-07 04:23:25 +00:00
2016-06-05 17:04:03 +00:00
2015-08-20 22:44:26 +00:00
2016-04-29 22:15:33 +00:00
2016-04-21 16:22:52 +00:00
2016-04-29 22:15:33 +00:00
2016-02-28 17:52:33 +00:00
2016-04-29 22:15:33 +00:00
2016-06-01 18:32:20 +00:00
2016-03-29 19:57:11 +00:00
2015-11-23 07:09:35 +00:00
2016-07-05 18:34:34 +00:00
2016-07-15 15:32:09 +00:00
2016-06-01 18:32:20 +00:00
2016-06-05 17:04:03 +00:00
2015-06-10 10:48:12 +00:00
2016-05-26 08:41:55 +00:00
2016-04-29 22:15:33 +00:00
2016-07-15 15:32:09 +00:00
2016-07-03 18:19:48 +00:00
2016-07-13 14:37:58 +00:00
2016-07-15 09:28:32 +00:00
2016-05-17 09:56:22 +00:00
2015-08-30 18:02:57 +00:00
2016-04-29 22:15:33 +00:00
2016-04-15 16:10:11 +00:00
2016-04-29 22:15:33 +00:00
2015-10-27 22:59:24 +00:00
2016-06-22 21:12:53 +00:00
2016-05-26 19:29:29 +00:00
2016-05-26 19:29:29 +00:00
2016-05-16 09:11:40 +00:00
2015-05-24 14:44:06 +00:00
2016-04-04 09:15:25 +00:00
2016-04-27 00:10:32 +00:00
2016-06-05 17:04:03 +00:00
2016-06-05 17:04:03 +00:00
2015-06-16 20:19:00 +00:00
2015-09-04 00:14:20 +00:00
2016-04-29 22:15:33 +00:00
2016-01-11 20:38:39 +00:00
2016-06-05 16:07:57 +00:00
2015-10-20 03:25:17 +00:00
2015-12-01 02:48:42 +00:00
2016-06-28 16:42:40 +00:00
2016-03-15 00:21:32 +00:00
2016-05-25 19:44:26 +00:00
2016-05-19 14:08:36 +00:00
2015-07-11 16:22:48 +00:00
2016-05-04 03:07:52 +00:00
2016-06-07 09:03:27 +00:00
2016-04-29 22:15:33 +00:00
2016-04-29 22:15:33 +00:00
2015-08-21 15:57:57 +00:00
2016-04-29 22:15:33 +00:00
2016-07-13 19:19:18 +00:00
2016-07-06 14:09:49 +00:00
2016-04-26 15:38:17 +00:00
2016-06-09 18:24:51 +00:00
2016-04-29 22:15:33 +00:00
2016-05-20 17:57:47 +00:00
2016-06-28 16:42:40 +00:00
2015-10-02 09:23:14 +00:00
2016-04-29 22:15:33 +00:00
2016-05-20 23:28:43 +00:00
2016-07-05 18:47:17 +00:00
2016-04-08 11:59:11 +00:00
2015-11-19 05:56:59 +00:00
2016-07-15 15:32:09 +00:00
2016-07-06 14:09:49 +00:00
2016-07-12 03:53:15 +00:00
2016-02-10 21:16:37 +00:00
2016-04-29 22:15:33 +00:00
2016-05-24 00:14:58 +00:00
2016-05-11 23:16:11 +00:00
2016-04-29 22:15:33 +00:00
2015-08-11 08:43:50 +00:00
2016-07-10 08:04:02 +00:00
2016-06-22 21:18:19 +00:00
2016-07-10 14:17:36 +00:00
2016-07-15 15:32:09 +00:00
2016-06-21 22:19:06 +00:00
2016-06-22 21:18:19 +00:00
2016-07-10 13:42:33 +00:00
2016-06-22 21:18:19 +00:00
2016-06-09 15:34:33 +00:00
2016-04-29 22:15:33 +00:00
2016-04-26 19:57:35 +00:00
2016-04-29 22:15:33 +00:00
2015-07-06 18:53:56 +00:00
2016-01-26 14:46:39 +00:00
2016-04-29 22:15:33 +00:00
2016-03-01 18:12:14 +00:00
2016-06-01 10:14:04 +00:00
2016-04-29 22:15:33 +00:00
2016-04-15 16:10:11 +00:00
2016-04-25 04:36:54 +00:00
2016-04-14 17:07:26 +00:00
2016-06-23 20:59:13 +00:00
2016-04-15 16:10:11 +00:00
2016-05-22 13:10:48 +00:00
2016-05-18 22:05:50 +00:00
2016-04-19 23:48:27 +00:00
2015-06-16 13:09:18 +00:00
2016-06-21 22:19:06 +00:00
2016-07-14 18:49:05 +00:00
2016-04-29 22:15:33 +00:00
2016-04-29 22:15:33 +00:00
2016-03-09 19:05:11 +00:00
2016-04-15 16:10:11 +00:00
2015-06-16 13:09:18 +00:00
2016-05-11 06:32:22 +00:00
2015-09-15 23:06:56 +00:00
2016-04-29 22:15:33 +00:00
2016-07-07 09:03:57 +00:00
2016-05-12 07:38:10 +00:00
2016-07-11 17:04:22 +00:00
2016-07-15 09:23:18 +00:00
2016-07-05 16:37:01 +00:00
2016-05-03 15:17:43 +00:00