[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/17] linux-user: Add support for KCOV_INIT_TRACE ioctl
From: |
Laurent Vivier |
Subject: |
[PULL 10/17] linux-user: Add support for KCOV_INIT_TRACE ioctl |
Date: |
Thu, 23 Jan 2020 09:22:20 +0100 |
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.
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Aleksandar Markovic <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <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 6220dd8cf791..23f6d3feb5db 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -538,4 +538,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 7b0b60d253d9..fb8318d12185 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -2437,6 +2437,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 */
--
2.24.1
- [PULL 00/17] Linux user for 5.0 patches, Laurent Vivier, 2020/01/23
- [PULL 05/17] linux-user: Add support for FS_IOC32_<GET|SET>VERSION ioctls, Laurent Vivier, 2020/01/23
- [PULL 04/17] linux-user: Add support for FS_IOC32_<GET|SET>FLAGS ioctls, Laurent Vivier, 2020/01/23
- [PULL 08/17] configure: Detect kcov support and introduce CONFIG_KCOV, Laurent Vivier, 2020/01/23
- [PULL 01/17] linux-user:Fix align mistake when mmap guest space, Laurent Vivier, 2020/01/23
- [PULL 09/17] linux-user: Add support for KCOV_<ENABLE|DISABLE> ioctls, Laurent Vivier, 2020/01/23
- [PULL 10/17] linux-user: Add support for KCOV_INIT_TRACE ioctl,
Laurent Vivier <=
- [PULL 06/17] linux-user: Add support for FD<SETEMSGTRESH|SETMAXERRS|GETMAXERRS> ioctls, Laurent Vivier, 2020/01/23
- [PULL 07/17] linux-user: Add support for FDFMT<BEG|TRK|END> ioctls, Laurent Vivier, 2020/01/23
- [PULL 03/17] linux-user: Add support for FS_IOC_<GET|SET>VERSION ioctls, Laurent Vivier, 2020/01/23
- [PULL 02/17] linux-user: Reserve space for brk, Laurent Vivier, 2020/01/23
- [PULL 14/17] linux-user: Add support for getting/setting RTC periodic interrupt and epoch using ioctls, Laurent Vivier, 2020/01/23
- [PULL 17/17] linux-user: Add support for read/clear RTC voltage low detector using ioctls, Laurent Vivier, 2020/01/23
- [PULL 11/17] linux-user: Add support for TYPE_LONG and TYPE_ULONG in do_ioctl(), Laurent Vivier, 2020/01/23
- [PULL 15/17] linux-user: Add support for getting/setting RTC wakeup alarm using ioctls, Laurent Vivier, 2020/01/23
- [PULL 12/17] linux-user: Add support for enabling/disabling RTC features using ioctls, Laurent Vivier, 2020/01/23
- [PULL 16/17] linux-user: Add support for getting/setting RTC PLL correction using ioctls, Laurent Vivier, 2020/01/23