mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
44 lines
1 KiB
C
44 lines
1 KiB
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/*
|
||
|
* Runtime Verification.
|
||
|
*
|
||
|
* For futher information, see: kernel/trace/rv/rv.c.
|
||
|
*/
|
||
|
#ifndef _LINUX_RV_H
|
||
|
#define _LINUX_RV_H
|
||
|
|
||
|
#ifdef CONFIG_RV
|
||
|
|
||
|
/*
|
||
|
* Per-task RV monitors count. Nowadays fixed in RV_PER_TASK_MONITORS.
|
||
|
* If we find justification for more monitors, we can think about
|
||
|
* adding more or developing a dynamic method. So far, none of
|
||
|
* these are justified.
|
||
|
*/
|
||
|
#define RV_PER_TASK_MONITORS 1
|
||
|
#define RV_PER_TASK_MONITOR_INIT (RV_PER_TASK_MONITORS)
|
||
|
|
||
|
/*
|
||
|
* Futher monitor types are expected, so make this a union.
|
||
|
*/
|
||
|
union rv_task_monitor {
|
||
|
};
|
||
|
|
||
|
struct rv_monitor {
|
||
|
const char *name;
|
||
|
const char *description;
|
||
|
bool enabled;
|
||
|
int (*enable)(void);
|
||
|
void (*disable)(void);
|
||
|
void (*reset)(void);
|
||
|
};
|
||
|
|
||
|
bool rv_monitoring_on(void);
|
||
|
int rv_unregister_monitor(struct rv_monitor *monitor);
|
||
|
int rv_register_monitor(struct rv_monitor *monitor);
|
||
|
int rv_get_task_monitor_slot(void);
|
||
|
void rv_put_task_monitor_slot(int slot);
|
||
|
|
||
|
#endif /* CONFIG_RV */
|
||
|
#endif /* _LINUX_RV_H */
|