From 02ab182bc1e66ef78f6dcbe949f10110b49397b4 Mon Sep 17 00:00:00 2001 From: jhb Date: Sat, 27 Jan 2001 07:51:34 +0000 Subject: Add a new ddb command 'witness_list' that lists the mutexes held by curproc. Requested by: peter --- sys/kern/kern_mutex.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/kern/kern_mutex.c') diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 9844db4..c13dd1d 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -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) { -- cgit v1.1