summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_ps.c
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2011-12-18 15:36:21 +0000
committerpluknet <pluknet@FreeBSD.org>2011-12-18 15:36:21 +0000
commit732d61aa2b5218526ce9d5fc29badae2f8602fa2 (patch)
treedee7f3571a95d340c26da5ccc1458f2bfc186b80 /sys/ddb/db_ps.c
parent952e2f20b5b7f292d040b0456988f2748e4a554f (diff)
downloadFreeBSD-src-732d61aa2b5218526ce9d5fc29badae2f8602fa2.zip
FreeBSD-src-732d61aa2b5218526ce9d5fc29badae2f8602fa2.tar.gz
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
Reviewed by: kib
Diffstat (limited to 'sys/ddb/db_ps.c')
-rw-r--r--sys/ddb/db_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index fcd1bd0..81e141e 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -447,7 +447,7 @@ db_findstack_cmd(db_expr_t addr, boolean_t have_addr,
return;
}
- for (p = LIST_FIRST(&allproc); p != NULL; p = LIST_NEXT(p, p_list)) {
+ FOREACH_PROC_IN_SYSTEM(p) {
FOREACH_THREAD_IN_PROC(p, td) {
if (td->td_kstack <= saddr && saddr < td->td_kstack +
PAGE_SIZE * td->td_kstack_pages) {
OpenPOWER on IntegriCloud