syscall.sh / x32 / getrusage
getrusage
get resource usage
sys_getrusage(int who, struct rusage *ru)
| number | 1073741922 (0x40000062) |
|---|---|
| abi | common |
| entry point | sys_getrusage |
| since | Linux 3.4 |
| man page | getrusage(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741922, the syscall number |
rdi | int who |
rsi | struct rusage *ru |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 98
- x86 77
- arm64 165
- arm 77
- riscv64 165
- loongarch64 165
- ppc64 77
- ppc 77
- s390x 77
- mips64 5096
- mipsn32 6096
- mipso32 4077
- alpha 364
- arc 165
- csky 165
- hexagon 165
- m68k 77
- microblaze 77
- nios2 165
- openrisc 165
- parisc 77
- sh 77
- sparc 117
- sparc64 117
- xtensa 190
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/getrusage