From: Tomas Glozar <tglo...@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 <tglo...@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

-- 
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to