1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #ifndef __ARM64_KVM_HYP_TRACE_H__ 4 #define __ARM64_KVM_HYP_TRACE_H__ 5 6 #include <linux/trace_seq.h> 7 #include <linux/workqueue.h> 8 9 struct ht_iterator { 10 struct ring_buffer_iter **buf_iter; 11 struct hyp_entry_hdr *ent; 12 struct trace_seq seq; 13 struct list_head list; 14 u64 ts; 15 void *spare; 16 size_t copy_leftover; 17 size_t ent_size; 18 struct delayed_work poke_work; 19 unsigned long lost_events; 20 cpumask_var_t cpus; 21 int ent_cpu; 22 int cpu; 23 }; 24 25 #ifdef CONFIG_TRACING 26 int init_hyp_tracefs(void); 27 #else init_hyp_tracefs(void)28static inline int init_hyp_tracefs(void) { return 0; } 29 #endif 30 #endif 31