Implement sched_rr_get_interval syscall decoder
* linux/dummy.h (sys_sched_rr_get_interval): Remove. * linux/syscall.h (sys_sched_rr_get_interval): New prototype. * process.c (sys_sched_rr_get_interval): New function.
This commit is contained in:
parent
64d0e71f8b
commit
1ff463d154
@ -45,7 +45,6 @@
|
||||
#define sys_prlimit64 printargs
|
||||
#define sys_request_key printargs
|
||||
#define sys_rt_tgsigqueueinfo printargs
|
||||
#define sys_sched_rr_get_interval printargs
|
||||
#define sys_sendmmsg printargs
|
||||
#define sys_sync_file_range printargs
|
||||
#define sys_sysfs printargs
|
||||
|
@ -208,6 +208,7 @@ int sys_sched_get_priority_min();
|
||||
int sys_sched_getaffinity();
|
||||
int sys_sched_getparam();
|
||||
int sys_sched_getscheduler();
|
||||
int sys_sched_rr_get_interval();
|
||||
int sys_sched_setaffinity();
|
||||
int sys_sched_setparam();
|
||||
int sys_sched_setscheduler();
|
||||
|
14
process.c
14
process.c
@ -2717,6 +2717,20 @@ sys_sched_get_priority_min(struct tcb *tcp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
sys_sched_rr_get_interval(struct tcb *tcp)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]);
|
||||
} else {
|
||||
if (syserror(tcp))
|
||||
tprintf("%#lx", tcp->u_arg[1]);
|
||||
else
|
||||
print_timespec(tcp, tcp->u_arg[1]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# ifdef X86_64
|
||||
# include <asm/prctl.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user