mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
In both protected and nVHE mode, the hypervisor is capable of writing events into tracefs compatible ring-buffers. Create a trace remote so the kernel can read those buffers. This currently doesn't provide any event support which will come later. Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Link: https://patch.msgid.link/20260309162516.2623589-25-vdonnefort@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
12 lines
247 B
C
12 lines
247 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __ARM64_KVM_HYP_TRACE_H__
|
|
#define __ARM64_KVM_HYP_TRACE_H__
|
|
|
|
#ifdef CONFIG_NVHE_EL2_TRACING
|
|
int kvm_hyp_trace_init(void);
|
|
#else
|
|
static inline int kvm_hyp_trace_init(void) { return 0; }
|
|
#endif
|
|
#endif
|