static void print_rlimit64(struct tcb *tcp, unsigned long addr) { struct rlimit_64 { uint64_t rlim_cur; uint64_t rlim_max; } rlim; if (!umove_or_printaddr(tcp, addr, &rlim)) { tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); } }
static void print_rlimit64(struct tcb *tcp, unsigned long addr) { struct rlimit_64 { uint64_t rlim_cur; uint64_t rlim_max; } rlim; if (umove(tcp, addr, &rlim) < 0) tprintf("%#lx", addr); else { tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); } }