git: 4e7d1b527c1e - main - Add a proc_off_p_hash helper variable.
John Baldwin
jhb at FreeBSD.org
Fri Jan 1 00:04:00 UTC 2021
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4e7d1b527c1ef77851b15f65e2d78b8017b669aa
commit 4e7d1b527c1ef77851b15f65e2d78b8017b669aa
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-01-01 00:00:33 +0000
Commit: John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-01-01 00:00:33 +0000
Add a proc_off_p_hash helper variable.
This is used by kernel debuggers to enumerate processes via the pid
hash table.
Reviewed by: kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D27825
---
sys/kern/kern_proc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 83c668eaece3..abc3206c5a26 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -142,6 +142,7 @@ uma_zone_t proc_zone;
const int proc_off_p_pid = offsetof(struct proc, p_pid);
const int proc_off_p_comm = offsetof(struct proc, p_comm);
const int proc_off_p_list = offsetof(struct proc, p_list);
+const int proc_off_p_hash = offsetof(struct proc, p_hash);
const int proc_off_p_threads = offsetof(struct proc, p_threads);
const int thread_off_td_tid = offsetof(struct thread, td_tid);
const int thread_off_td_name = offsetof(struct thread, td_name);
More information about the dev-commits-src-all
mailing list