From 7347dfce0139d0faaa45d45c50586e4cf5d7104b Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 5 Sep 2021 12:45:29 -0700 Subject: [PATCH] Add run_interrupt_driven_config_hooks to TSLOG The 'intr_config_hooks' SYSINIT is now taking a nontrivial amount of time in my profiling; run_interrupt_driven_config_hooks is responsible for most of it, so this adds useful information to the resulting flamecharts. --- sys/kern/subr_autoconf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index f6039e34e29..f87d99bbedc 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -121,6 +121,7 @@ run_interrupt_driven_config_hooks() static int running; struct intr_config_hook *hook_entry; + TSENTER(); mtx_lock(&intr_config_hook_lock); /* @@ -146,6 +147,7 @@ run_interrupt_driven_config_hooks() running = 0; mtx_unlock(&intr_config_hook_lock); + TSEXIT(); } static void