[CRIU] [PATCH 2/4] posix-timer: Add proper syscalls definition.

Stanislav Kinsbursky skinsbursky at parallels.com
Mon May 20 06:00:09 EDT 2013


20.05.2013 02:24, Pavel Tikhomirov пишет:
>
> Signed-off-by: Pavel Tikhomirov <snorcht at gmail.com>
> ---
>   arch/x86/syscall-x86-64.def |    5 +++++
>   include/syscall-types.h     |    2 ++
>   2 files changed, 7 insertions(+)
>
> diff --git a/arch/x86/syscall-x86-64.def b/arch/x86/syscall-x86-64.def
> index 1889a91..56e39ca 100644
> --- a/arch/x86/syscall-x86-64.def
> +++ b/arch/x86/syscall-x86-64.def
> @@ -74,6 +74,11 @@ __NR_set_thread_area	205		sys_set_thread_area	(user_desc_t *info)
>   __NR_get_thread_area	211		sys_get_thread_area	(user_desc_t *info)
>   __NR_set_tid_address	218		sys_set_tid_address	(int *tid_addr)
>   __NR_restart_syscall	219		sys_restart_syscall	(void)
> +__NR_sys_timer_create	222		sys_timer_create	(clockid_t which_clock, struct sigevent *timer_event_spec, timer_t *created_timer_id)
> +__NR_sys_timer_settime	223		sys_timer_settime	(timer_t timer_id, int flags, const struct itimerspec *new_setting, struct itimerspec *old_setting)
> +__NR_sys_timer_gettime	224		sys_timer_gettime	(int timer_id, const struct itimerspec *setting)
> +__NR_sys_timer_getoverrun	225		sys_timer_getoverrun	(int timer_id)

Note, that this syscall is not enough for posix timers migration.
It will return previous overrun value.
Current (possibly incrementing) value is not accessible yet via neither this syscall, nor any other interface.

> +__NR_sys_timer_delete	226		sys_timer_delete	(timer_t timer_id)
>   __NR_exit_group		231		sys_exit_group		(int error_code)
>   __NR_set_robust_list	273		sys_set_robust_list	(struct robust_list_head *head, size_t len)
>   __NR_get_robust_list	274		sys_get_robust_list	(int pid, struct robust_list_head **head_ptr, size_t *len_ptr)
> diff --git a/include/syscall-types.h b/include/syscall-types.h
> index 922375a..9cb5795 100644
> --- a/include/syscall-types.h
> +++ b/include/syscall-types.h
> @@ -31,6 +31,8 @@ struct rusage;
>   struct file_handle;
>   struct robust_list_head;
>
> +struct itimerspec;
> +
>   #ifndef F_GETFD
>   #define F_GETFD 1
>   #endif
>


-- 
Best regards,
Stanislav Kinsbursky


More information about the CRIU mailing list