]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtla: Add optional dependency on BPF tooling
authorTomas Glozar <tglozar@redhat.com>
Tue, 18 Feb 2025 14:58:54 +0000 (15:58 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 4 Mar 2025 17:35:17 +0000 (12:35 -0500)
commit9dc3766ed07c95c9a77fa98dcbc83dcb7f49df3d
treeb4ccb003d08c1f55ec45de052d4b6aafc525b2d9
parent8a635c3856ddb74ed3fe7c856b271cdfeb65f293
rtla: Add optional dependency on BPF tooling

If tooling required for building BPF CO-RE skeletons is present (that
is, libbpf, clang with BPF CO-RE support, and bpftool), turn on
HAVE_BPF_SKEL flag.

Those requirements are similar to what perf requires, with the
difference of using system libbpf and bpftool instead of in-tree
versions.

rtla can be forcefully built without BPF skeleton support by setting
BUILD_BPF_SKEL=0 manually; in that case, a warning is displayed.

Cc: John Kacur <jkacur@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Link: https://lore.kernel.org/20250218145859.27762-4-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/Makefile
tools/tracing/rtla/Makefile.config