Linux 4.6-rc6
[cris-mirror.git] / include / linux / kcov.h
blob2883ac98c280ca429f25f5571805d02fa09be96b
1 #ifndef _LINUX_KCOV_H
2 #define _LINUX_KCOV_H
4 #include <uapi/linux/kcov.h>
6 struct task_struct;
8 #ifdef CONFIG_KCOV
10 void kcov_task_init(struct task_struct *t);
11 void kcov_task_exit(struct task_struct *t);
13 enum kcov_mode {
14 /* Coverage collection is not enabled yet. */
15 KCOV_MODE_DISABLED = 0,
17 * Tracing coverage collection mode.
18 * Covered PCs are collected in a per-task buffer.
20 KCOV_MODE_TRACE = 1,
23 #else
25 static inline void kcov_task_init(struct task_struct *t) {}
26 static inline void kcov_task_exit(struct task_struct *t) {}
28 #endif /* CONFIG_KCOV */
29 #endif /* _LINUX_KCOV_H */