ddb(4): Add sleepchains to "show allchains"
Reported by: markj Reviewed by: markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D8320
This commit is contained in:
parent
38d3251c3d
commit
8798ef0679
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307780
@ -157,6 +157,9 @@ static void init_turnstile0(void *dummy);
|
||||
#ifdef TURNSTILE_PROFILING
|
||||
static void init_turnstile_profiling(void *arg);
|
||||
#endif
|
||||
#ifdef DDB
|
||||
static void print_sleepchain(struct thread *td, const char *prefix);
|
||||
#endif
|
||||
static void propagate_priority(struct thread *td);
|
||||
static int turnstile_adjust_thread(struct turnstile *ts,
|
||||
struct thread *td);
|
||||
@ -1169,6 +1172,10 @@ DB_SHOW_ALL_COMMAND(chains, db_show_allchains)
|
||||
db_printf("chain %d:\n", i++);
|
||||
print_lockchain(td, " ");
|
||||
}
|
||||
if (TD_IS_INHIBITED(td) && TD_ON_SLEEPQ(td)) {
|
||||
db_printf("chain %d:\n", i++);
|
||||
print_sleepchain(td, " ");
|
||||
}
|
||||
if (db_pager_quit)
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user