From: Tomas Glozar tglozar@redhat.com
redhat/kernel.spec.template: Build rtla with BPF sample collection
Sample collection using BPF was introduced in 6.15 as a faster default mechanism. The previous implementation using a tracefs pipe is now a fallback.
This allows rtla to work properly when measuring on a large number of CPUs, as well as reduces CPU usage on all systems.
Add build dependency on libbpf-devel, bpftool, and clang, and runtime dependency on libbpf for rtla in order to enable rtla BPF sample collection.
Signed-off-by: Tomas Glozar tglozar@redhat.com
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -755,6 +755,9 @@ BuildRequires: libcap-devel libcap-ng-devel BuildRequires: python3-docutils BuildRequires: libtraceevent-devel BuildRequires: libtracefs-devel +BuildRequires: libbpf-devel +BuildRequires: bpftool +BuildRequires: clang
%ifnarch s390x BuildRequires: pciutils-devel @@ -1311,6 +1314,7 @@ Epoch: %{gemini} Summary: Real-Time Linux Analysis tools Requires: libtraceevent Requires: libtracefs +Requires: libbpf %ifarch %{cpupowerarchs} Requires: %{package_name}-tools-libs = %{version}-%{release} %endif
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3815