Make it possible to convert map arguments to long and insert nsecs in maps.
authormpi <mpi@openbsd.org>
Thu, 21 Jan 2021 13:19:25 +0000 (13:19 +0000)
committermpi <mpi@openbsd.org>
Thu, 21 Jan 2021 13:19:25 +0000 (13:19 +0000)
commit03b76035ea8a602fd1ac9eed3049c9dd6a28fe71
tree4978057a86fbdf9574373ef54e4b58657b2ef9af
parentfd101f5348b0e38948b622b0f4740f0f3412cec7
Make it possible to convert map arguments to long and insert nsecs in maps.

Necessary to measure latency, example below to better understand the kqueue
select(2) regression:

syscall:select:entry { @start[pid] = nsecs; }
syscall:select:return { @usecs = hist((nsecs - @start[pid]) / 1000); }
usr.sbin/btrace/btrace.c
usr.sbin/btrace/map.c