From 7c11d1b4f899240e0c71663393a4ae0970f4eaf5 Mon Sep 17 00:00:00 2001 From: Viktor Malik Date: Thu, 23 Oct 2025 13:56:26 +0200 Subject: [PATCH] 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 --- bpftrace.spec | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bpftrace.spec b/bpftrace.spec index 16ceb81..3cd89bb 100644 --- a/bpftrace.spec +++ b/bpftrace.spec @@ -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)