Honor db_pager_quit in 'show uma' and 'show malloc'.
MFC after: 1 month
This commit is contained in:
parent
2f3a9ba57f
commit
687c94aac9
@ -1000,6 +1000,8 @@ DB_SHOW_COMMAND(malloc, db_show_malloc)
|
||||
db_printf("%18s %12ju %12juK %12ju\n",
|
||||
mtp->ks_shortdesc, allocs - frees,
|
||||
(alloced - freed + 1023) / 1024, allocs);
|
||||
if (db_pager_quit)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1029,6 +1031,8 @@ DB_SHOW_COMMAND(multizone_matches, db_show_multizone_matches)
|
||||
if (mtip->mti_zone != subzone)
|
||||
continue;
|
||||
db_printf("%s\n", mtp->ks_shortdesc);
|
||||
if (db_pager_quit)
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* MALLOC_DEBUG_MAXZONES > 1 */
|
||||
|
@ -3381,6 +3381,8 @@ DB_SHOW_COMMAND(uma, db_show_uma)
|
||||
(uintmax_t)kz->uk_size,
|
||||
(intmax_t)(allocs - frees), cachefree,
|
||||
(uintmax_t)allocs, sleeps);
|
||||
if (db_pager_quit)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user