1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * Automatically generated by rvgen kunit. 4 * May need manual intervention for function prototypes that couldn't be 5 * found (e.g. are in another file) or variables to be exported. 6 */ 7 8 #ifndef __SLEEP_KUNIT_H 9 #define __SLEEP_KUNIT_H 10 11 #if IS_ENABLED(CONFIG_RV_MONITORS_KUNIT_TEST) 12 13 #include <linux/rv.h> 14 #include <rv/kunit.h> 15 16 extern const struct rv_sleep_ops { 17 struct rv_kunit_mon mon; 18 void (*handle_sched_waking)(void *data, struct task_struct *task); 19 void (*handle_sched_exit)(void *data, bool is_switch); 20 void (*handle_sched_set_state)(void *data, struct task_struct *task, int state); 21 void (*handle_contention_begin)(void *data, void *lock, unsigned int flags); 22 void (*handle_contention_end)(void *data, void *lock, int ret); 23 void (*handle_sys_enter)(void *data, struct pt_regs *regs, long id); 24 void (*handle_sys_exit)(void *data, struct pt_regs *regs, long ret); 25 void (*handle_task_newtask)(void *data, struct task_struct *task, u64 flags); 26 } rv_sleep_ops; 27 #endif 28 29 #endif /* __SLEEP_KUNIT_H */ 30