xref: /linux/arch/arm64/kvm/hyp/include/nvhe/define_events.h (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #undef HYP_EVENT
4 #define HYP_EVENT(__name, __proto, __struct, __assign, __printk)	\
5 	struct hyp_event_id hyp_event_id_##__name			\
6 	__section(".hyp.event_ids."#__name) = {				\
7 		.enabled = ATOMIC_INIT(0),				\
8 	}
9 
10 #define HYP_EVENT_MULTI_READ
11 #include <asm/kvm_hypevents.h>
12 #undef HYP_EVENT_MULTI_READ
13 
14 #undef HYP_EVENT
15