[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 20/20] linux-user: Add support for KCOV_INIT_TRACE ioctl
From: |
Laurent Vivier |
Subject: |
Re: [PATCH v5 20/20] linux-user: Add support for KCOV_INIT_TRACE ioctl |
Date: |
Tue, 14 Jan 2020 15:53:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 |
Le 13/01/2020 à 21:34, Aleksandar Markovic a écrit :
> From: Aleksandar Markovic <address@hidden>
>
> KCOV_INIT_TRACE ioctl plays the role in kernel coverage tracing.
> This ioctl's third argument is of type 'unsigned long', and the
> implementation in QEMU is straightforward.
>
> Signed-off-by: Aleksandar Markovic <address@hidden>
> ---
> linux-user/ioctls.h | 1 +
> linux-user/syscall_defs.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
> index 39b3825..1da71dd 100644
> --- a/linux-user/ioctls.h
> +++ b/linux-user/ioctls.h
> @@ -556,4 +556,5 @@
> #ifdef CONFIG_KCOV
> IOCTL(KCOV_ENABLE, 0, TYPE_NULL)
> IOCTL(KCOV_DISABLE, 0, TYPE_NULL)
> + IOCTL(KCOV_INIT_TRACE, IOC_R, TYPE_ULONG)
> #endif
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index 87e390d..209c138 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -2460,6 +2460,7 @@ struct target_mtpos {
> /* kcov ioctls */
> #define TARGET_KCOV_ENABLE TARGET_IO('c', 100)
> #define TARGET_KCOV_DISABLE TARGET_IO('c', 101)
> +#define TARGET_KCOV_INIT_TRACE TARGET_IOR('c', 1, abi_ulong)
>
> struct target_sysinfo {
> abi_long uptime; /* Seconds since boot */
>
Reviewed-by: Laurent Vivier <address@hidden>
- Re: [PATCH v5 15/20] linux-user: Add support for FD<SETEMSGTRESH|SETMAXERRS|GETMAXERRS> ioctls, (continued)
- [PATCH v5 16/20] linux-user: Add support for FDFMT<BEG|TRK|END> ioctls, Aleksandar Markovic, 2020/01/13
- [PATCH v5 17/20] linux-user: Add support for FDGETFDCSTAT ioctl, Aleksandar Markovic, 2020/01/13
- [PATCH v5 19/20] linux-user: Add support for KCOV_<ENABLE|DISABLE> ioctls, Aleksandar Markovic, 2020/01/13
- [PATCH v5 18/20] configure: Detect kcov support and introduce CONFIG_KCOV, Aleksandar Markovic, 2020/01/13
- [PATCH v5 20/20] linux-user: Add support for KCOV_INIT_TRACE ioctl, Aleksandar Markovic, 2020/01/13
- Re: [PATCH v5 20/20] linux-user: Add support for KCOV_INIT_TRACE ioctl,
Laurent Vivier <=