Re: [PATCH v9 28/30] KVM: arm64: Add hyp_enter/hyp_exit events to nVHE/pKVM hyp
From: Steven Rostedt
Date: Wed Jan 07 2026 - 11:36:39 EST
On Wed, 07 Jan 2026 14:37:35 +0000
Marc Zyngier <maz@xxxxxxxxxx> 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