]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/kcov.h
kernel: add kcov code coverage
[karo-tx-linux.git] / include / linux / kcov.h
diff --git a/include/linux/kcov.h b/include/linux/kcov.h
new file mode 100644 (file)
index 0000000..72ff663
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _LINUX_KCOV_H
+#define _LINUX_KCOV_H
+
+#include <uapi/linux/kcov.h>
+
+struct task_struct;
+
+#ifdef CONFIG_KCOV
+
+void kcov_task_init(struct task_struct *t);
+void kcov_task_exit(struct task_struct *t);
+
+#else
+
+static inline void kcov_task_init(struct task_struct *t) {}
+static inline void kcov_task_exit(struct task_struct *t) {}
+
+#endif /* CONFIG_KCOV */
+#endif /* _LINUX_KCOV_H */