On Wed, 07 Jan 2026 14:37:35 +0000
Marc Zyngier <[email protected]> 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

Reply via email to