aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-02-22 02:14:08 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-02-22 02:14:08 +0000
commitaddec20c382ef56cdc60e494378e7ffe6a7456be (patch)
tree84ab56fafff096eb7de436efc3c189667a2b0bb8 /sys/kern/kern_intr.c
parent25d209f260cc019ddff0fd3c56b7a3a4ce70f871 (diff)
downloadsrc-addec20c382ef56cdc60e494378e7ffe6a7456be.tar.gz
src-addec20c382ef56cdc60e494378e7ffe6a7456be.zip
Add KTR tracepoints for adding/removing interrupt handlers,
creating/destroying interrupt threads, and updating the state of an interrupt thread.
Notes
Notes: svn path=/head/; revision=72837
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 1be05644145f..eb4872b99cb5 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -154,6 +154,8 @@ ithread_update(struct ithd *ithd)
ithd->it_flags |= IT_ENTROPY;
else
ithd->it_flags &= ~IT_ENTROPY;
+
+ CTR1(KTR_INTR, __func__ ": updated %s\n", p->p_comm);
}
int
@@ -194,6 +196,7 @@ ithread_create(struct ithd **ithread, int vector, int flags,
if (ithread != NULL)
*ithread = ithd;
+ CTR1(KTR_INTR, __func__ ": created %s", ithd->it_name);
return (0);
}
@@ -211,6 +214,7 @@ ithread_destroy(struct ithd *ithread)
setrunqueue(ithread->it_proc);
}
mtx_unlock_spin(&sched_lock);
+ CTR1(KTR_INTR, __func__ ": killing %s", ithread->it_name);
return (0);
}
@@ -260,6 +264,8 @@ ithread_add_handler(struct ithd* ithread, const char *name,
if (cookiep != NULL)
*cookiep = ih;
+ CTR2(KTR_INTR, __func__ ": added %s to %s", ih->ih_name,
+ ithread->it_name);
return (0);
fail:
@@ -283,6 +289,8 @@ ithread_remove_handler(void *cookie)
KASSERT(ithread != NULL,
("interrupt handler \"%s\" has a NULL interrupt thread",
handler->ih_name));
+ CTR2(KTR_INTR, __func__ ": removing %s from %s", handler->ih_name,
+ ithread->it_name);
mtx_lock_spin(&ithread_list_lock);
#ifdef INVARIANTS
TAILQ_FOREACH(ih, &ithread->it_handlers, ih_next)