mirror of https://github.com/OpenIPC/firmware.git
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
diff -drupN a/include/uapi/linux/kcov.h b/include/uapi/linux/kcov.h
|
|
--- a/include/uapi/linux/kcov.h 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/include/uapi/linux/kcov.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -7,4 +7,28 @@
|
|
#define KCOV_ENABLE _IO('c', 100)
|
|
#define KCOV_DISABLE _IO('c', 101)
|
|
|
|
+enum {
|
|
+ /*
|
|
+ * Tracing coverage collection mode.
|
|
+ * Covered PCs are collected in a per-task buffer.
|
|
+ * In new KCOV version the mode is chosen by calling
|
|
+ * ioctl(fd, KCOV_ENABLE, mode). In older versions the mode argument
|
|
+ * was supposed to be 0 in such a call. So, for reasons of backward
|
|
+ * compatibility, we have chosen the value KCOV_TRACE_PC to be 0.
|
|
+ */
|
|
+ KCOV_TRACE_PC = 0,
|
|
+ /* Collecting comparison operands mode. */
|
|
+ KCOV_TRACE_CMP = 1,
|
|
+};
|
|
+
|
|
+/*
|
|
+ * The format for the types of collected comparisons.
|
|
+ *
|
|
+ * Bit 0 shows whether one of the arguments is a compile-time constant.
|
|
+ * Bits 1 & 2 contain log2 of the argument size, up to 8 bytes.
|
|
+ */
|
|
+#define KCOV_CMP_CONST (1 << 0)
|
|
+#define KCOV_CMP_SIZE(n) ((n) << 1)
|
|
+#define KCOV_CMP_MASK KCOV_CMP_SIZE(3)
|
|
+
|
|
#endif /* _LINUX_KCOV_IOCTLS_H */
|