spall instrumentation

This commit is contained in:
Laytan Laats
2024-01-31 20:20:54 +01:00
committed by Laytan
parent 1ebb7f8e9d
commit ca6300c860
8 changed files with 187 additions and 11 deletions
+1
View File
@@ -1,4 +1,5 @@
//+build linux
//+no-instrumentation
package linux
import "base:intrinsics"
+6 -1
View File
@@ -1,3 +1,4 @@
//+no-instrumentation
package linux
import "base:intrinsics"
@@ -2383,7 +2384,11 @@ timer_delete :: proc "contextless" (timer: Timer) -> (Errno) {
// TODO(flysand): clock_settime
// TODO(flysand): clock_gettime
clock_gettime :: proc "contextless" (clock: Clock_Id) -> (ts: Time_Spec, err: Errno) {
ret := syscall(SYS_clock_gettime, clock, &ts)
err = Errno(-ret)
return
}
// TODO(flysand): clock_getres