aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/proc.h1
-rw-r--r--sys/sys/ptrace.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 8246c599fc43..bf3c78846a76 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -602,6 +602,7 @@ struct proc {
#define p_endcopy p_xstat
u_short p_xstat; /* (c) Exit status; also stop sig. */
+ lwpid_t p_xlwpid; /* (c) Thread corresponding p_xstat. */
int p_numthreads; /* (j) Number of threads. */
int p_numksegrps; /* (?) number of ksegrps */
struct mdproc p_md; /* Any machine-dependent fields. */
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index c849eb6fc195..03ff33c13ce6 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -47,6 +47,7 @@
#define PT_ATTACH 10 /* trace some running process */
#define PT_DETACH 11 /* stop tracing a process */
#define PT_IO 12 /* do I/O to/from stopped process. */
+#define PT_LWPINFO 13 /* Info about the LWP that stopped. */
#define PT_TO_SCE 20
#define PT_TO_SCX 21
@@ -77,6 +78,14 @@ struct ptrace_io_desc {
#define PIOD_READ_I 3 /* Read from I space */
#define PIOD_WRITE_I 4 /* Write to I space */
+/* Argument structure for PT_LWPINFO. */
+struct ptrace_lwpinfo {
+ lwpid_t pl_lwpid; /* LWP described. */
+ int pl_event; /* Event that stopped the LWP. */
+#define PL_EVENT_NONE 0
+#define PL_EVENT_SIGNAL 1
+};
+
#ifdef _KERNEL
#define PTRACESTOP_SC(p, td, flag) \