svn commit: r228687 - head/sys/ddb
Sergey Kandaurov
pluknet at FreeBSD.org
Sun Dec 18 15:36:22 UTC 2011
Author: pluknet
Date: Sun Dec 18 15:36:21 2011
New Revision: 228687
URL: http://svn.freebsd.org/changeset/base/228687
Log:
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
Reviewed by: kib
Modified:
head/sys/ddb/db_ps.c
Modified: head/sys/ddb/db_ps.c
==============================================================================
--- head/sys/ddb/db_ps.c Sun Dec 18 12:27:45 2011 (r228686)
+++ head/sys/ddb/db_ps.c Sun Dec 18 15:36:21 2011 (r228687)
@@ -447,7 +447,7 @@ db_findstack_cmd(db_expr_t addr, boolean
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) {
More information about the svn-src-head
mailing list