mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.
Reviewed by: kib
This commit is contained in:
parent
bb265163b2
commit
148ddfed15
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue