<linux/sunrpc/svcauth.h>: Define hash_str() in terms of hashlen_string()
[linux-2.6-block.git] / include / linux / kcov.h
CommitLineData
5c9a8750
DV
1#ifndef _LINUX_KCOV_H
2#define _LINUX_KCOV_H
3
4#include <uapi/linux/kcov.h>
5
6struct task_struct;
7
8#ifdef CONFIG_KCOV
9
10void kcov_task_init(struct task_struct *t);
11void kcov_task_exit(struct task_struct *t);
12
13enum kcov_mode {
14 /* Coverage collection is not enabled yet. */
15 KCOV_MODE_DISABLED = 0,
16 /*
17 * Tracing coverage collection mode.
18 * Covered PCs are collected in a per-task buffer.
19 */
20 KCOV_MODE_TRACE = 1,
21};
22
23#else
24
25static inline void kcov_task_init(struct task_struct *t) {}
26static inline void kcov_task_exit(struct task_struct *t) {}
27
28#endif /* CONFIG_KCOV */
29#endif /* _LINUX_KCOV_H */