aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2021-09-05 19:45:29 +0000
committerColin Percival <cperciva@FreeBSD.org>2021-09-05 19:45:29 +0000
commit7347dfce0139d0faaa45d45c50586e4cf5d7104b (patch)
tree98607f6a415b6927d40cba0c23629022525eda42
parent007724cbca6f6d91b8c3450bd4a11f3ea2bb647a (diff)
downloadsrc-7347dfce0139d0faaa45d45c50586e4cf5d7104b.tar.gz
src-7347dfce0139d0faaa45d45c50586e4cf5d7104b.zip
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.
-rw-r--r--sys/kern/subr_autoconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index f6039e34e29f..f87d99bbedcf 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