git: 7347dfce0139 - main - Add run_interrupt_driven_config_hooks to TSLOG

Colin Percival cperciva at FreeBSD.org
Sun Sep 5 19:51:49 UTC 2021


The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=7347dfce0139d0faaa45d45c50586e4cf5d7104b

commit 7347dfce0139d0faaa45d45c50586e4cf5d7104b
Author:     Colin Percival <cperciva at FreeBSD.org>
AuthorDate: 2021-09-05 19:45:29 +0000
Commit:     Colin Percival <cperciva at FreeBSD.org>
CommitDate: 2021-09-05 19:45:29 +0000

    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 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


More information about the dev-commits-src-all mailing list