mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/bpftrace-0.10.0-r1: Fix build with bcc-0.15.0
Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -45,6 +45,8 @@ PATCHES=(
|
||||
"${FILESDIR}/bpftrace-0.10.0-install-libs.patch"
|
||||
"${FILESDIR}/bpftrace-0.10.0-dont-compress-man.patch"
|
||||
"${FILESDIR}/bpftrace-0.10.0-llvm-multi.patch"
|
||||
# bpf_detach_kfunc has always been a noop
|
||||
"${FILESDIR}/bpftrace-0.10.0-no-bpf_detach_kfunc.patch"
|
||||
)
|
||||
|
||||
# lots of fixing needed
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/attached_probe.cpp b/src/attached_probe.cpp
|
||||
index c7e789e..08f657e 100644
|
||||
--- a/src/attached_probe.cpp
|
||||
+++ b/src/attached_probe.cpp
|
||||
@@ -116,7 +116,7 @@ void AttachedProbe::attach_kfunc(void)
|
||||
int AttachedProbe::detach_kfunc(void)
|
||||
{
|
||||
close(tracing_fd_);
|
||||
- return bpf_detach_kfunc(progfd_, NULL);
|
||||
+ return 0;
|
||||
}
|
||||
#else
|
||||
void AttachedProbe::attach_kfunc(void)
|
||||
Reference in New Issue
Block a user