2 #include <sys/sysinfo.h>
5 sys_sysinfo(struct tcb *tcp)
12 if (syserror(tcp) || !verbose(tcp) ||
13 umove(tcp, tcp->u_arg[0], &si) < 0) {
14 tprintf("%#lx", tcp->u_arg[0]);
17 ", loads=[%lu, %lu, %lu]"
25 #ifdef HAVE_STRUCT_SYSINFO_TOTALHIGH
28 #ifdef HAVE_STRUCT_SYSINFO_FREEHIGH
31 #ifdef HAVE_STRUCT_SYSINFO_MEM_UNIT
36 , si.loads[0], si.loads[1], si.loads[2]
44 #ifdef HAVE_STRUCT_SYSINFO_TOTALHIGH
47 #ifdef HAVE_STRUCT_SYSINFO_FREEHIGH
50 #ifdef HAVE_STRUCT_SYSINFO_MEM_UNIT