On Tue, 13 Jan 2026 09:31:00 +0900
Masami Hiramatsu (Google) <[email protected]> wrote:

> > +   static struct eventfs_entry event_ro_entries[] = {
> > +           {
> > +                   .name           = "format",
> > +                   .callback       = event_callback,
> > +           },
> > +#ifdef CONFIG_PERF_EVENTS
> > +           {
> > +                   .name           = "id",
> > +                   .callback       = event_callback,
> > +           },
> > +#endif
> > +   };  
> 
> Thinking about this hack again, it would be easier to maintain if I add
> a readonly flag to each eventfs_entry and specify readonly when creating
> the eventfs top directory.
> 
> Let me update it.

Let's not add any flags to the eventfs_entry. That is created for every
event, and events are already too big in size. I don't want to increase the
size of each event for this feature.

-- Steve

Reply via email to