/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ARM64_KVM_HYP_TRACE_H__ #define __ARM64_KVM_HYP_TRACE_H__ #include #include #ifdef CONFIG_TRACING int hyp_trace_init_tracefs(void); int hyp_trace_init_events(void); struct hyp_event *hyp_trace_find_event(int id); void hyp_trace_init_event_tracefs(struct dentry *parent); int hyp_trace_init_mod_events(struct pkvm_el2_module *mod); bool hyp_event_early_probe(void); void hyp_trace_enable_event_early(void); #else static inline int hyp_trace_init_tracefs(void) { return 0; } static inline int hyp_trace_init_events(void) { return 0; } static inline int hyp_trace_init_mod_events(struct pkvm_el2_module *mod) { return 0; } static inline void hyp_trace_enable_event_early(void) { } #endif #endif