aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-04-01 19:22:09 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-04-01 19:22:09 +0000
commit59838c1a1979924f3904536f2e6d5a771e185c14 (patch)
treece7764a4aa67665a70f2079c297f21e0d1225c33 /sys/sys/proc.h
parent02cb5b4be86ed9827ddd8c39df5f48e6925c66d8 (diff)
downloadsrc-59838c1a1979924f3904536f2e6d5a771e185c14.tar.gz
src-59838c1a1979924f3904536f2e6d5a771e185c14.zip
Retire procfs-based process debugging.
Modern debuggers and process tracers use ptrace() rather than procfs for debugging. ptrace() has a supserset of functionality available via procfs and new debugging features are only added to ptrace(). While the two debugging services share some fields in struct proc, they each use dedicated fields and separate code. This results in extra complexity to support a feature that hasn't been enabled in the default install for several years. PR: 244939 (exp-run) Reviewed by: kib, mjg (earlier version) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D23837
Notes
Notes: svn path=/head/; revision=359530
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index bbae5cf1caae..48610210c95a 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -644,10 +644,6 @@ struct proc {
struct sigiolst p_sigiolst; /* (c) List of sigio sources. */
int p_sigparent; /* (c) Signal to parent on exit. */
int p_sig; /* (n) For core dump/debugger XXX. */
- u_int p_stops; /* (c) Stop event bitmask. */
- u_int p_stype; /* (c) Stop event type. */
- char p_step; /* (c) Process is stopped. */
- u_char p_pfsflags; /* (c) Procfs flags. */
u_int p_ptevents; /* (c + e) ptrace() event mask. */
struct nlminfo *p_nlminfo; /* (?) Only used by/for lockd. */
struct kaioinfo *p_aioinfo; /* (y) ASYNC I/O info. */
@@ -864,23 +860,6 @@ extern pid_t pid_max;
#define SESS_LEADER(p) ((p)->p_session->s_leader == (p))
-#define STOPEVENT(p, e, v) do { \
- WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, \
- "checking stopevent %d", (e)); \
- if ((p)->p_stops & (e)) { \
- PROC_LOCK(p); \
- stopevent((p), (e), (v)); \
- PROC_UNLOCK(p); \
- } \
-} while (0)
-#define _STOPEVENT(p, e, v) do { \
- PROC_LOCK_ASSERT(p, MA_OWNED); \
- WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, &p->p_mtx.lock_object, \
- "checking stopevent %d", (e)); \
- if ((p)->p_stops & (e)) \
- stopevent((p), (e), (v)); \
-} while (0)
-
/* Lock and unlock a process. */
#define PROC_LOCK(p) mtx_lock(&(p)->p_mtx)
#define PROC_TRYLOCK(p) mtx_trylock(&(p)->p_mtx)