From b887a1555c9df740ca185ce2758dffe0af457c95 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 5 Apr 2013 14:30:51 +0000 Subject: [PATCH] If filter of the interrupt event is not null, print it, in addition to the handler address. Add a mark to distinguish between filter and handler. Note that the arguments for both filter and handler are same. Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after: 1 week --- sys/kern/kern_intr.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 8351ab8482c1..8d63c9bdb478 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -1739,7 +1739,16 @@ db_dump_intrhand(struct intr_handler *ih) break; } db_printf(" "); - db_printsym((uintptr_t)ih->ih_handler, DB_STGY_PROC); + if (ih->ih_filter != NULL) { + db_printf("[F]"); + db_printsym((uintptr_t)ih->ih_filter, DB_STGY_PROC); + } + if (ih->ih_handler != NULL) { + if (ih->ih_filter != NULL) + db_printf(","); + db_printf("[H]"); + db_printsym((uintptr_t)ih->ih_handler, DB_STGY_PROC); + } db_printf("(%p)", ih->ih_argument); if (ih->ih_need || (ih->ih_flags & (IH_EXCLUSIVE | IH_ENTROPY | IH_DEAD |