5 #include "xlat/schedulers.h"
7 SYS_FUNC(sched_getscheduler)
10 tprintf("%d", (int) tcp->u_arg[0]);
11 } else if (!syserror(tcp)) {
12 tcp->auxstr = xlookup(schedulers, tcp->u_rval);
13 if (tcp->auxstr != NULL)
19 SYS_FUNC(sched_setscheduler)
23 tprintf("%d, ", (int) tcp->u_arg[0]);
24 printxval(schedulers, tcp->u_arg[1], "SCHED_???");
25 if (umove(tcp, tcp->u_arg[2], &p) < 0)
26 tprintf(", %#lx", tcp->u_arg[2]);
28 tprintf(", { %d }", p.sched_priority);
33 SYS_FUNC(sched_getparam)
36 tprintf("%d, ", (int) tcp->u_arg[0]);
39 if (umove(tcp, tcp->u_arg[1], &p) < 0)
40 tprintf("%#lx", tcp->u_arg[1]);
42 tprintf("{ %d }", p.sched_priority);
47 SYS_FUNC(sched_setparam)
51 if (umove(tcp, tcp->u_arg[1], &p) < 0)
52 tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]);
54 tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority);
59 SYS_FUNC(sched_get_priority_min)
62 printxval(schedulers, tcp->u_arg[0], "SCHED_???");
67 SYS_FUNC(sched_rr_get_interval)
70 tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]);
73 tprintf("%#lx", tcp->u_arg[1]);
75 print_timespec(tcp, tcp->u_arg[1]);