uprobe: gate bpf call behind BPF_EVENTS
authorDelyan Kratunov <delyank@fb.com>
Mon, 20 Jun 2022 21:47:55 +0000 (21:47 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 21 Jun 2022 00:04:03 +0000 (17:04 -0700)
commitaca80dd95e20f1fa0daa212afc83c9fa0ad239e5
tree4b6f09b78a1728f5d77a52226c6ff1f352c7ffba
parente068c0776b0bbd3fc5a283b0e0eaa1cbb9ef0e3d
uprobe: gate bpf call behind BPF_EVENTS

The call into bpf from uprobes needs to be gated now that it doesn't use
the trace_events.h helpers.

Randy found this as a randconfig build failure on linux-next [1].

  [1]: https://lore.kernel.org/linux-next/2de99180-7d55-2fdf-134d-33198c27cc58@infradead.org/

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Delyan Kratunov <delyank@fb.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/cb8bfbbcde87ed5d811227a393ef4925f2aadb7b.camel@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/trace_uprobe.c