Date: Fri, 1 Jan 2021 00:03:59 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 4e7d1b527c1e - main - Add a proc_off_p_hash helper variable. Message-ID: <202101010003.10103xbL093781@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4e7d1b527c1ef77851b15f65e2d78b8017b669aa commit 4e7d1b527c1ef77851b15f65e2d78b8017b669aa Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-01-01 00:00:33 +0000 Commit: John Baldwin <jhb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101010003.10103xbL093781>