[PATCH v9 28/30] KVM: arm64: Add hyp_enter/hyp_exit events to nVHE/pKVM hyp
Steven Rostedt
rostedt at goodmis.org
Wed Jan 7 08:36:58 PST 2026
On Wed, 07 Jan 2026 14:37:35 +0000
Marc Zyngier <maz at kernel.org> wrote:
> > +static const char *__hyp_enter_exit_reason_str(u8 reason);
> > +
> > #include <asm/kvm_define_hypevents.h>
> >
> > +static const char *__hyp_enter_exit_reason_str(u8 reason)
>
> That's one ugly hack... :-(
This is basically the way TRACE_EVENT()s are created.
Have a look at include/trace/trace_event.h and include/trace/define_event.h
But I have to warn you. You may need to wear ugly hack proof glasses ;-)
-- Steve
More information about the linux-arm-kernel
mailing list