mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
db37dd89d6
commit
bd27e675d3
3 changed files with 12 additions and 0 deletions
|
@ -2434,6 +2434,10 @@ struct target_mtpos {
|
|||
#define TARGET_MTIOCGET TARGET_IOR('m', 2, struct target_mtget)
|
||||
#define TARGET_MTIOCPOS TARGET_IOR('m', 3, struct target_mtpos)
|
||||
|
||||
/* kcov ioctls */
|
||||
#define TARGET_KCOV_ENABLE TARGET_IO('c', 100)
|
||||
#define TARGET_KCOV_DISABLE TARGET_IO('c', 101)
|
||||
|
||||
struct target_sysinfo {
|
||||
abi_long uptime; /* Seconds since boot */
|
||||
abi_ulong loads[3]; /* 1, 5, and 15 minute load averages */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue