diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2020-01-16 23:49:50 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-01-22 15:15:18 +0100 |
commit | bd27e675d33d829fdb89a8604e0aba6f9f38ab79 (patch) | |
tree | fef9ec840c190178024c3c7f5a9eac25cb8ee29f /linux-user/ioctls.h | |
parent | db37dd89d663a2891d2b70c753a41389ae7893e4 (diff) | |
download | qemu-bd27e675d33d829fdb89a8604e0aba6f9f38ab79.zip qemu-bd27e675d33d829fdb89a8604e0aba6f9f38ab79.tar.gz qemu-bd27e675d33d829fdb89a8604e0aba6f9f38ab79.tar.bz2 |
linux-user: Add support for KCOV_<ENABLE|DISABLE> ioctls
KCOV_ENABLE and KCOV_DISABLE play the role in kernel coverage
tracing. These ioctls do not use the third argument of ioctl()
system call and are straightforward to implement in QEMU.
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1579214991-19602-12-git-send-email-aleksandar.markovic@rt-rk.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/ioctls.h')
-rw-r--r-- | linux-user/ioctls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 29969e2..6220dd8 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -534,3 +534,8 @@ IOCTL_IGNORE(TIOCSTART) IOCTL_IGNORE(TIOCSTOP) #endif + +#ifdef CONFIG_KCOV + IOCTL(KCOV_ENABLE, 0, TYPE_NULL) + IOCTL(KCOV_DISABLE, 0, TYPE_NULL) +#endif |