• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef __ARM64_KVM_HYPEVENTS_DEFS_H
4 #define __ARM64_KVM_HYPEVENTS_DEFS_H
5 
6 struct hyp_event_id {
7 	unsigned short id;
8 	void *data;
9 };
10 
11 struct hyp_entry_hdr {
12 	unsigned short id;
13 };
14 
15 /*
16  * Hyp events definitions common to the hyp and the host
17  */
18 #define HYP_EVENT_FORMAT(__name, __struct)		\
19 	struct __packed trace_hyp_format_##__name {	\
20 		struct hyp_entry_hdr hdr;		\
21 		__struct				\
22 	}
23 
24 #define HE_PROTO(args...)	args
25 #define HE_STRUCT(args...)	args
26 #define HE_ASSIGN(args...)	args
27 #define HE_PRINTK(args...)	args
28 
29 #define he_field(type, item)	type item;
30 #endif
31