On Fri, May 31, 2024 at 12:39:31PM +0200, Sebastian Andrzej Siewior wrote: > On 2024-05-31 12:15:50 [+0200], Jiri Olsa wrote: > > The bpf_session_cookie is unavailable for !CONFIG_FPROBE as reported > > by Sebastian [1]. > > > > Instead of adding more ifdefs, making the session kfuncs globally > > available as suggested by Alexei. It's still allowed only for > > session programs, but it won't fail the build. > > but this relies on CONFIG_UPROBE_EVENTS=y > What about CONFIG_UPROBE_EVENTS=n? hum, I can't see that.. also I tested it with CONFIG_UPROBE_EVENTS=n, the CONFIG_UPROBES ifdef is ended right above this code.. jirka > > Sebastian