1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX_KCOV_IOCTLS_H 8 #define _LINUX_KCOV_IOCTLS_H 9 #include <linux/types.h> 10 struct kcov_remote_arg { 11 __u32 trace_mode; 12 __u32 area_size; 13 __u32 num_handles; 14 __aligned_u64 common_handle; 15 __aligned_u64 handles[]; 16 }; 17 #define KCOV_REMOTE_MAX_HANDLES 0x100 18 #define KCOV_INIT_TRACE _IOR('c', 1, unsigned long) 19 #define KCOV_ENABLE _IO('c', 100) 20 #define KCOV_DISABLE _IO('c', 101) 21 #define KCOV_REMOTE_ENABLE _IOW('c', 102, struct kcov_remote_arg) 22 enum { 23 KCOV_TRACE_PC = 0, 24 KCOV_TRACE_CMP = 1, 25 }; 26 #define KCOV_CMP_CONST (1 << 0) 27 #define KCOV_CMP_SIZE(n) ((n) << 1) 28 #define KCOV_CMP_MASK KCOV_CMP_SIZE(3) 29 #define KCOV_SUBSYSTEM_COMMON (0x00ull << 56) 30 #define KCOV_SUBSYSTEM_USB (0x01ull << 56) 31 #define KCOV_SUBSYSTEM_MASK (0xffull << 56) 32 #define KCOV_INSTANCE_MASK (0xffffffffull) 33 #endif 34