On 2024-05-29 21:34:25 [+0200], Jiri Olsa wrote: > > > +#ifdef CONFIG_FPROBE > > > BTF_ID(func, bpf_session_cookie) > > > +#else > > > +BTF_ID_UNUSED > > > +#endif > > > > Instead of this fix.. > > Jiri, > > maybe remove ifdef CONFIG_FPROBE hiding of this kfunc > > in kernel/tace/bpf_trace.c ? > > The less ifdef-s the better. imo > > yes, that seems to work > > Sebastian, do you want to send it as v2 or should I post it? Now that I look again, ifdef CONFIG_FPROBE isn't enough it requires additionally CONFIG_UPROBE_EVENTS. So the suggested snippet does not work if CONFIG_UPROBE_EVENTS is not enabled. > thanks, > jirka Sebastian