timer_getoverrun on x64
get overrun count for a POSIX per-process timer
sys_timer_getoverrun(timer_t timer_id)
| number | 225 (0xe1) |
|---|---|
| abi | common |
| kconfig | CONFIG_POSIX_TIMERS |
| entry point | sys_timer_getoverrun |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | timer_getoverrun(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 225, the syscall number |
rdi | timer_t timer_id |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 262
- arm64 109
- arm 260
- riscv64 109
- ia32 262
- x32 1073742049
- loongarch64 109
- ppc64 243
- ppc 243
- s390x 257
- mips64 5219
- mipsn32 6223
- mipso32 4260
- alpha 417
- arc 109
- blackfin 263, removed in 4.17
- cris 262, removed in 4.17
- csky 109
- frv 262, removed in 4.17
- hexagon 109
- ia64 1251, removed in 6.7
- m32r 262, removed in 4.17
- m68k 257
- metag 109, removed in 4.17
- microblaze 262
- mn10300 262, removed in 4.17
- nds32 109, removed in 5.18
- nios2 109
- openrisc 109
- parisc 253
- score 109, removed in 4.17
- sh 262
- sparc 264
- sparc64 264
- tilegx 109, removed in 4.17
- tilepro 109, removed in 4.17
- xtensa 252
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/timer_getoverrun