syscall.sh / csky / getrusage

getrusage

get resource usage

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

Registers

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

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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