mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Add KTR_INTR tracepoints for when clock interrupts are triggered.
This commit is contained in:
parent
2a21da3022
commit
c9c1406f76
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81117
@ -192,6 +192,7 @@ hardclock(frame)
|
||||
{
|
||||
int need_softclock = 0;
|
||||
|
||||
CTR0(KTR_INTR, "hardclock fired");
|
||||
mtx_lock_spin(&sched_lock);
|
||||
hardclock_process(curproc, CLKF_USERMODE(frame));
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
@ -445,6 +446,7 @@ statclock(frame)
|
||||
register struct clockframe *frame;
|
||||
{
|
||||
|
||||
CTR0(KTR_INTR, "statclock fired");
|
||||
mtx_lock_spin(&sched_lock);
|
||||
if (--pscnt == 0)
|
||||
pscnt = psdiv;
|
||||
|
Loading…
Reference in New Issue
Block a user