mirror of
https://github.com/torvalds/linux.git
synced 2026-10-15 20:30:02 +02:00
Validate the functionality of LTL monitors by injecting events in a controlled environment (KUnit) and expecting reactions, just like it is done in DA monitors. Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20260723074534.43521-15-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Automatically generated by rvgen kunit.
|
|
* May need manual intervention for function prototypes that couldn't be
|
|
* found (e.g. are in another file) or variables to be exported.
|
|
*/
|
|
|
|
#ifndef __SLEEP_KUNIT_H
|
|
#define __SLEEP_KUNIT_H
|
|
|
|
#if IS_ENABLED(CONFIG_RV_MONITORS_KUNIT_TEST)
|
|
|
|
#include <linux/rv.h>
|
|
#include <rv/kunit.h>
|
|
|
|
extern const struct rv_sleep_ops {
|
|
struct rv_kunit_mon mon;
|
|
void (*handle_sched_waking)(void *data, struct task_struct *task);
|
|
void (*handle_sched_exit)(void *data, bool is_switch);
|
|
void (*handle_sched_set_state)(void *data, struct task_struct *task, int state);
|
|
void (*handle_contention_begin)(void *data, void *lock, unsigned int flags);
|
|
void (*handle_contention_end)(void *data, void *lock, int ret);
|
|
void (*handle_sys_enter)(void *data, struct pt_regs *regs, long id);
|
|
void (*handle_sys_exit)(void *data, struct pt_regs *regs, long ret);
|
|
void (*handle_task_newtask)(void *data, struct task_struct *task, u64 flags);
|
|
} rv_sleep_ops;
|
|
#endif
|
|
|
|
#endif /* __SLEEP_KUNIT_H */
|