mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Add a new ddb command 'witness_list' that lists the mutexes held by
curproc. Requested by: peter
This commit is contained in:
parent
0fee3d3550
commit
d38b8dbfc8
3 changed files with 30 additions and 0 deletions
|
|
@ -1766,6 +1766,16 @@ witness_list(struct proc *p)
|
|||
return (nheld);
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
|
||||
DB_COMMAND(witness_list, db_witness_list)
|
||||
{
|
||||
|
||||
witness_list(CURPROC);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
witness_save(struct mtx *m, const char **filep, int *linep)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1766,6 +1766,16 @@ witness_list(struct proc *p)
|
|||
return (nheld);
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
|
||||
DB_COMMAND(witness_list, db_witness_list)
|
||||
{
|
||||
|
||||
witness_list(CURPROC);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
witness_save(struct mtx *m, const char **filep, int *linep)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1766,6 +1766,16 @@ witness_list(struct proc *p)
|
|||
return (nheld);
|
||||
}
|
||||
|
||||
#ifdef DDB
|
||||
|
||||
DB_COMMAND(witness_list, db_witness_list)
|
||||
{
|
||||
|
||||
witness_list(CURPROC);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
witness_save(struct mtx *m, const char **filep, int *linep)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue