Re: [PATCH v9 28/30] KVM: arm64: Add hyp_enter/hyp_exit events to nVHE/pKVM hyp

Steven Rostedt
2026-01-07T16:36:39Z

On Wed, 07 Jan 2026 14:37:35 +0000
Marc Zyngier <maz@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