clock_gettime on arm64

clock and time functions

sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec *tp)
number113 (0x71)
abi64
entry pointsys_clock_gettime
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pageclock_gettime(2)
sourceelixir.bootlin.com

Registers

registervalue
x8113, the syscall number
x0clockid_t which_clock
x1struct __kernel_timespec *tp
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/clock_gettime