getrusage on score
get resource usage
sys_getrusage(int who, struct rusage *ru)
| number | 165 (0xa5) |
|---|---|
| abi | common |
| entry point | sys_getrusage |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | getrusage(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 165, the syscall number |
r4 | int who |
r5 | struct rusage *ru |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 98
- x86 77
- arm64 165
- arm 77
- riscv64 165
- ia32 77
- x32 1073741922
- loongarch64 165
- ppc64 77
- ppc 77
- s390x 77
- mips64 5096
- mipsn32 6096
- mipso32 4077
- alpha 364
- arc 165
- blackfin 77, removed in 4.17
- cris 77, removed in 4.17
- csky 165
- frv 77, removed in 4.17
- hexagon 165
- ia64 1086, removed in 6.7
- m32r 77, removed in 4.17
- m68k 77
- metag 165, removed in 4.17
- microblaze 77
- mn10300 77, removed in 4.17
- nds32 165, removed in 5.18
- nios2 165
- openrisc 165
- parisc 77
- sh 77
- sparc 117
- sparc64 117
- tilegx 165, removed in 4.17
- tilepro 165, removed in 4.17
- xtensa 190
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/getrusage?kernel=all