update to 0.13.0
This commit is contained in:
parent
c491e3fc3d
commit
79240a0d1e
Binary file not shown.
BIN
bpftrace-0.13.0.tar.gz
Normal file
BIN
bpftrace-0.13.0.tar.gz
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
Name: bpftrace
|
Name: bpftrace
|
||||||
Version: 0.10.0
|
Version: 0.13.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: High-level tracing language for Linux eBPF
|
Summary: High-level tracing language for Linux eBPF
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
|
|
||||||
@ -16,7 +16,6 @@ BuildRequires: zlib-devel llvm-devel clang-devel
|
|||||||
BuildRequires: bcc-devel >= 0.11.0-2
|
BuildRequires: bcc-devel >= 0.11.0-2
|
||||||
BuildRequires: libbpf-devel libbpf-static
|
BuildRequires: libbpf-devel libbpf-static
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
Patch0001: fix_build_error.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
bpftrace is a high-level tracing language for Linux enhanced Berkeley Packet
|
bpftrace is a high-level tracing language for Linux enhanced Berkeley Packet
|
||||||
@ -36,8 +35,7 @@ and predecessor tracers such as DTrace and SystemTap.
|
|||||||
%cmake . \
|
%cmake . \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DBUILD_TESTING:BOOL=OFF \
|
-DBUILD_TESTING:BOOL=OFF \
|
||||||
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
-DBUILD_SHARED_LIBS:BOOL=OFF
|
||||||
-DLIBBCC_LIBRARIES:PATH=/usr/lib64/libbcc-no-libbpf.so
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
@ -62,6 +60,9 @@ find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 10 2022 liyanan <liyanan32@huawei.com> - 0.13.0-1
|
||||||
|
- update to 0.13.0
|
||||||
|
|
||||||
* Mon Nov 9 2020 wutao <wutao61@huawei.com> - 0.10.0-2
|
* Mon Nov 9 2020 wutao <wutao61@huawei.com> - 0.10.0-2
|
||||||
- fix build error
|
- fix build error
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +0,0 @@
|
|||||||
From b7a8159fcaaeb7d0e2e64c2474f05ca199d970e8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: William Findlay <william@williamfindlay.com>
|
|
||||||
Date: Sun, 21 Jun 2020 13:18:54 -0400
|
|
||||||
Subject: [PATCH] Return 0 in detach_kfunc
|
|
||||||
diff --git a/bpftrace-0.10.0-old/src/attached_probe.cpp b/bpftrace-0.10.0/src/attached_probe.cpp
|
|
||||||
index 16486b6..8a2f739 100644
|
|
||||||
--- a/src/attached_probe.cpp
|
|
||||||
+++ b/src/attached_probe.cpp
|
|
||||||
@@ -115,7 +115,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)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user