dt(4): interval, profile: schedule clockintr relative to start of recording
authorcheloha <cheloha@openbsd.org>
Thu, 29 Feb 2024 00:18:48 +0000 (00:18 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 29 Feb 2024 00:18:48 +0000 (00:18 +0000)
commita79ed6b1d1def38898a7bdc27c4bb5388947e1ea
tree7f420224e9eb6a432fb4b722c38770ccc2c3784b
parentb4a69dbe6c2609b3ea96aa5b0c18ab31a53267ec
dt(4): interval, profile: schedule clockintr relative to start of recording

For the interval and profile providers, schedule the first clock
interrupt to occur dp_nsecs nanoseconds after the start of recording.
This makes the interval between the start of recording and the first
event consistent across runs.

With input from claudio@.  Simplified by claudio@.

Thread: https://marc.info/?l=openbsd-tech&m=170879058205043&w=2

ok mpi@ claudio@
sys/dev/dt/dt_dev.c