svn commit: r235440 - stable/9/sys/ddb

Sergey Kandaurov pluknet at FreeBSD.org
Mon May 14 13:49:06 UTC 2012


Author: pluknet
Date: Mon May 14 13:49:06 2012
New Revision: 235440
URL: http://svn.freebsd.org/changeset/base/235440

Log:
  MFC r228687:
  
  Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.

Modified:
  stable/9/sys/ddb/db_ps.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ddb/db_ps.c
==============================================================================
--- stable/9/sys/ddb/db_ps.c	Mon May 14 12:13:50 2012	(r235439)
+++ stable/9/sys/ddb/db_ps.c	Mon May 14 13:49:06 2012	(r235440)
@@ -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-stable mailing list