Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2021 19:51:49 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7347dfce0139 - main - Add run_interrupt_driven_config_hooks to TSLOG
Message-ID:  <202109051951.185JpnkA056869@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by cperciva:

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

commit 7347dfce0139d0faaa45d45c50586e4cf5d7104b
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2021-09-05 19:45:29 +0000
Commit:     Colin Percival <cperciva@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109051951.185JpnkA056869>