1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

Add KTR tracepoints for adding/removing interrupt handlers,

creating/destroying interrupt threads, and updating the state of an
interrupt thread.
This commit is contained in:
John Baldwin 2001-02-22 02:14:08 +00:00
parent 25d209f260
commit addec20c38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72837

View File

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