• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 <asm/kvm_hyptrace.h>
7 #include <asm/kvm_hypevents_defs.h>
8 
9 #ifdef CONFIG_TRACING
10 int hyp_trace_init_tracefs(void);
11 int hyp_trace_init_events(void);
12 struct hyp_event *hyp_trace_find_event(int id);
13 void hyp_trace_init_event_tracefs(struct dentry *parent);
14 int hyp_trace_init_mod_events(struct pkvm_el2_module *mod);
15 bool hyp_event_early_probe(void);
16 void hyp_trace_enable_event_early(void);
17 #else
hyp_trace_init_tracefs(void)18 static inline int hyp_trace_init_tracefs(void) { return 0; }
hyp_trace_init_events(void)19 static inline int hyp_trace_init_events(void) { return 0; }
hyp_trace_init_mod_events(struct pkvm_el2_module * mod)20 static inline int hyp_trace_init_mod_events(struct pkvm_el2_module *mod)
21 {
22 	return 0;
23 }
hyp_trace_enable_event_early(void)24 static inline void hyp_trace_enable_event_early(void) { }
25 #endif
26 #endif
27