summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portclock.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-08-13 22:27:52 +0000
committerOri Bernstein <ori@eigenstate.org>2022-08-13 22:27:52 +0000
commitea3dec6c60c1aac7ff37b0aa4a5130c49ecd480d (patch)
treed24503c346e4896bee3d8002738bcab5b46fb4db /sys/src/9/port/portclock.c
parentf332cf05579e82b213944a331c7b4f37f88f2587 (diff)
dtracy: make timer probes run in interrupt context
When probing a timer, we were running in our own kproc, and not in an interrupt context, which meant that we didn't have any access to anything worth sampling, so we didn't give any data back. This moves the probe to the hzclock interrupt, and returns the pc in the probe.
Diffstat (limited to 'sys/src/9/port/portclock.c')
-rw-r--r--sys/src/9/port/portclock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/port/portclock.c b/sys/src/9/port/portclock.c
index 6711815ff..e12938bc3 100644
--- a/sys/src/9/port/portclock.c
+++ b/sys/src/9/port/portclock.c
@@ -154,6 +154,7 @@ hzclock(Ureg *ur)
}
accounttime();
+ dtracytick(ur);
kmapinval();
if(kproftimer != nil)