From 4dc1122b300d6afebac418c0b6f76921528d2a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 1 Dec 2007 12:01:11 +0000 Subject: [PATCH] The "ints" KDL command now also dumps the handlers associated to a vector. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23037 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/int.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/system/kernel/int.c b/src/system/kernel/int.c index cb76711752..9fbe45f917 100644 --- a/src/system/kernel/int.c +++ b/src/system/kernel/int.c @@ -76,19 +76,28 @@ dump_int_statistics(int argc, char **argv) { int i; for (i = 0; i < NUM_IO_VECTORS; i++) { + struct io_handler *io; + if (io_vectors[i].vector_lock == 0 && io_vectors[i].enable_count == 0 && io_vectors[i].handled_count == 0 && io_vectors[i].unhandled_count == 0 && io_vectors[i].handler_list.next == &io_vectors[i].handler_list) continue; + kprintf("int %3d, enabled %ld, handled %8lld, unhandled %8lld%s%s\n", - i, - io_vectors[i].enable_count, - io_vectors[i].handled_count, + i, io_vectors[i].enable_count, io_vectors[i].handled_count, io_vectors[i].unhandled_count, - (io_vectors[i].vector_lock != 0) ? ", ACTIVE" : "", - (io_vectors[i].handler_list.next == &io_vectors[i].handler_list) ? ", no handler" : ""); + io_vectors[i].vector_lock != 0 ? ", ACTIVE" : "", + io_vectors[i].handler_list.next == &io_vectors[i].handler_list + ? ", no handler" : ""); + + for (io = io_vectors[i].handler_list.next; + io != &io_vectors[i].handler_list; io = io->next) { + kprintf("\t%p", io->func); + } + if (io_vectors[i].handler_list.next != &io_vectors[i].handler_list) + kprintf("\n"); } return 0; }