xref: /linux/kernel/trace/rv/monitors/sts/sts_kunit.h (revision 55ee4b931a7ffedc886175d265dd6e6d08fd4151)
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 __STS_KUNIT_H
9 #define __STS_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_sts_ops {
17 	struct rv_kunit_mon mon;
18 #ifdef CONFIG_X86_LOCAL_APIC
19 	void (*handle_vector_irq_entry)(void *data, int vector);
20 #endif
21 	void (*handle_irq_disable)(void *data, unsigned long ip, unsigned long parent_ip);
22 	void (*handle_irq_enable)(void *data, unsigned long ip, unsigned long parent_ip);
23 	void (*handle_irq_entry)(void *data, int irq, struct irqaction *action);
24 	void (*handle_sched_switch)(void *data, bool preempt,
25 				struct task_struct *prev,
26 				struct task_struct *next,
27 				unsigned int prev_state);
28 	void (*handle_schedule_entry)(void *data, bool preempt);
29 	void (*handle_schedule_exit)(void *data, bool is_switch);
30 } rv_sts_ops;
31 #endif
32 
33 #endif /* __STS_KUNIT_H */
34