Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2012 13:49:06 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r235440 - stable/9/sys/ddb
Message-ID:  <201205141349.q4EDn6ZJ035745@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205141349.q4EDn6ZJ035745>