return RVAL_DECODED;
}
-SYS_FUNC(sched_rr_get_interval)
+static int
+do_sched_rr_get_interval(struct tcb *const tcp,
+ const print_obj_by_addr_fn print_ts)
{
if (entering(tcp)) {
tprintf("%d, ", (int) tcp->u_arg[0]);
if (syserror(tcp))
printaddr(tcp->u_arg[1]);
else
- print_timespec(tcp, tcp->u_arg[1]);
+ print_ts(tcp, tcp->u_arg[1]);
}
return 0;
}
+SYS_FUNC(sched_rr_get_interval)
+{
+ return do_sched_rr_get_interval(tcp, print_timespec);
+}
+
static void
print_sched_attr(struct tcb *const tcp, const kernel_ulong_t addr,
unsigned int usize)