summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pcpu.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-05-11 18:24:22 +0000
committerattilio <attilio@FreeBSD.org>2010-05-11 18:24:22 +0000
commit4d95c325ddc0a2cee03abd4ff6cf7eaf0e75e888 (patch)
tree1ff93cd2b53115def1f3b62d662c860d7c6138af /sys/kern/subr_pcpu.c
parentfd4782d957bea021cedbc136b2a46eeec97e379d (diff)
downloadFreeBSD-src-4d95c325ddc0a2cee03abd4ff6cf7eaf0e75e888.zip
FreeBSD-src-4d95c325ddc0a2cee03abd4ff6cf7eaf0e75e888.tar.gz
Right now, WITNESS just blindly pipes all the output to the
(TOCONS | TOLOG) mask even when called from DDB points. That breaks several output, where the most notable is textdump output. Fix this by having configurable callbacks passed to witness_list_locks() and witness_display_spinlock() for printing out datas. Reported by: several broken textdump outputs Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com> MFC after: 7 days X-MFC: r207922
Diffstat (limited to 'sys/kern/subr_pcpu.c')
-rw-r--r--sys/kern/subr_pcpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c
index 5610980..f28ad61 100644
--- a/sys/kern/subr_pcpu.c
+++ b/sys/kern/subr_pcpu.c
@@ -363,7 +363,7 @@ show_pcpu(struct pcpu *pc)
#ifdef WITNESS
db_printf("spin locks held:\n");
- witness_list_locks(&pc->pc_spinlocks);
+ witness_list_locks(&pc->pc_spinlocks, db_printf);
#endif
}
OpenPOWER on IntegriCloud