[CRIU] [PATCH] make: config add test for ptrace_peeksiginfo_args

Christopher Covington cov at codeaurora.org
Wed Feb 5 10:11:33 PST 2014


Hi Andrey,

On 02/03/2014 09:40 AM, Andrey Vagin wrote:

> diff --git a/include/ptrace.h b/include/ptrace.h
> index 46b6def..15a56c7 100644
> --- a/include/ptrace.h
> +++ b/include/ptrace.h
> @@ -19,14 +19,17 @@
>  
>  #ifndef PTRACE_PEEKSIGINFO
>  #define PTRACE_PEEKSIGINFO      0x4209
> +
> +/* Read signals from a shared (process wide) queue */
> +#define PTRACE_PEEKSIGINFO_SHARED       (1 << 0)
> +#endif
> +
> +#ifndef CONFIG_HAS_PEEKSIGINFO_ARGS

I believe config.h has to be included for this macro to be defined.

>  struct ptrace_peeksiginfo_args {
>          __u64 off;	/* from which siginfo to start */
>          __u32 flags;
>          __u32 nr;	/* how may siginfos to take */
>  };
> -
> -/* Read signals from a shared (process wide) queue */
> -#define PTRACE_PEEKSIGINFO_SHARED       (1 << 0)
>  #endif
>  
>  #ifndef PTRACE_GETREGSET

Thanks,
Christopher

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by the Linux Foundation.


More information about the CRIU mailing list