14 void quit(const char *text)
16 err(errno, "%s", text);
19 char *sched_text(int scheduler)
33 return "Illegal scheduler value";
37 int sched_is(int line, struct sched_param *p, int shouldbe)
40 struct sched_param param;
42 /* What scheduler are we running now?
45 scheduler = sched_getscheduler(0);
46 if (sched_getparam(0, ¶m))
47 quit("sched_getparam");
52 if (shouldbe != -1 && scheduler != shouldbe)
55 "At line %d the scheduler should be %s yet it is %s.\n",
56 line, sched_text(shouldbe), sched_text(scheduler));