Strip bpftrace binaries

Historically, bpftrace binary could not be stripped as its symbols were
needed for the BEGIN and END probes. However, these probes are now
implemented as BPF_PROG_TYPE_RAW_TRACEPOINT and executed via
BPF_PROG_RUN. Therefore, binaries can be stripped now.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
This commit is contained in:
Viktor Malik 2025-10-23 13:56:26 +02:00
parent 3ac07929ae
commit 7c11d1b4f8
No known key found for this signature in database
GPG Key ID: AF7A2E1F6EE74FB3

View File

@ -53,12 +53,6 @@ and predecessor tracers such as DTrace and SystemTap
%install
# The post hooks strip the binary which removes
# the BEGIN_trigger and END_trigger functions
# which are needed for the BEGIN and END probes
%global __os_install_post %{nil}
%global _find_debuginfo_opts -g
%cmake_install
# Fix shebangs (https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines)