syscall.sh / riscv64 / getrusage

getrusage

get resource usage

sys_getrusage(int who, struct rusage *ru)
number165 (0xa5)
abicommon
entry pointsys_getrusage
sinceLinux 4.15
man pagegetrusage(2)
sourceelixir.bootlin.com

Registers

registervalue
a7165, the syscall number
a0int who
a1struct rusage *ru
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/getrusage