2018-11-09 15:51:46 +00:00
|
|
|
Name: bpftrace
|
2024-06-25 06:02:08 +00:00
|
|
|
Version: 0.21.1
|
|
|
|
Release: 1%{?dist}
|
2018-11-09 15:51:46 +00:00
|
|
|
Summary: High-level tracing language for Linux eBPF
|
2023-06-14 08:01:17 +00:00
|
|
|
License: Apache-2.0
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
URL: https://github.com/iovisor/bpftrace
|
2019-04-22 19:39:44 +00:00
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2024-06-25 06:02:08 +00:00
|
|
|
|
|
|
|
Patch10: %{name}-%{version}-RHEL-aarch64-fixes-statsnoop-and-opensnoop.patch
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
# Arches will be included as upstream support is added and dependencies are
|
|
|
|
# satisfied in the respective arches
|
2020-07-16 19:13:27 +00:00
|
|
|
ExclusiveArch: x86_64 %{power64} aarch64 s390x
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: zlib-devel
|
2021-04-05 21:05:50 +00:00
|
|
|
BuildRequires: llvm-devel
|
|
|
|
BuildRequires: clang-devel
|
2021-04-03 00:15:08 +00:00
|
|
|
BuildRequires: bcc-devel >= 0.19.0-1
|
2019-12-09 16:47:17 +00:00
|
|
|
BuildRequires: libbpf-devel
|
|
|
|
BuildRequires: libbpf-static
|
|
|
|
BuildRequires: binutils-devel
|
2021-10-25 15:09:27 +00:00
|
|
|
BuildRequires: cereal-devel
|
2024-06-25 06:02:08 +00:00
|
|
|
BuildRequires: lldb-devel
|
2021-10-25 15:09:27 +00:00
|
|
|
BuildRequires: rubygem-asciidoctor
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
BPFtrace is a high-level tracing language for Linux enhanced Berkeley Packet
|
|
|
|
Filter (eBPF) available in recent Linux kernels (4.x). BPFtrace uses LLVM as a
|
|
|
|
backend to compile scripts to BPF-bytecode and makes use of BCC for
|
|
|
|
interacting with the Linux BPF system, as well as existing Linux tracing
|
|
|
|
capabilities: kernel dynamic tracing (kprobes), user-level dynamic tracing
|
|
|
|
(uprobes), and tracepoints. The BPFtrace language is inspired by awk and C,
|
|
|
|
and predecessor tracers such as DTrace and SystemTap
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-03-25 21:24:14 +00:00
|
|
|
%autosetup -p1
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2022-04-19 10:06:02 +00:00
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DBUILD_TESTING:BOOL=OFF \
|
2023-01-31 14:56:16 +00:00
|
|
|
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
|
|
|
-DUSE_SYSTEM_BPF_BCC:BOOL=ON
|
2020-08-04 18:44:03 +00:00
|
|
|
%cmake_build
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-08-04 18:44:03 +00:00
|
|
|
# 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
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
# Fix shebangs (https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines)
|
|
|
|
find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \
|
|
|
|
sed -i -e '1s=^#!/usr/bin/env %{name}\([0-9.]\+\)\?$=#!%{_bindir}/%{name}=' {} \;
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md CONTRIBUTING-TOOLS.md
|
2024-06-25 06:02:08 +00:00
|
|
|
%doc man/adoc/bpftrace.adoc docs/tutorial_one_liners.md
|
2018-11-09 15:51:46 +00:00
|
|
|
%license LICENSE
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/tools
|
2018-12-10 14:04:08 +00:00
|
|
|
%dir %{_datadir}/%{name}/tools/doc
|
2018-11-09 15:51:46 +00:00
|
|
|
%{_bindir}/%{name}
|
2021-10-25 15:09:27 +00:00
|
|
|
%{_bindir}/%{name}-aotrt
|
2018-11-09 15:51:46 +00:00
|
|
|
%{_mandir}/man8/*
|
2018-12-10 14:04:08 +00:00
|
|
|
%attr(0755,-,-) %{_datadir}/%{name}/tools/*.bt
|
|
|
|
%{_datadir}/%{name}/tools/doc/*.txt
|
2024-06-25 06:02:08 +00:00
|
|
|
# Do not include old versions of tools, they do not work on RHEL 10
|
|
|
|
%exclude %{_datadir}/%{name}/tools/old
|
2018-11-09 15:51:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-06-25 06:02:08 +00:00
|
|
|
* Tue Jun 25 2024 Viktor Malik <vmalik@redhat.com> - 0.21.1-1
|
|
|
|
- Rebased to version 0.21.1
|
|
|
|
- Resolves: RHEL-36076
|
|
|
|
- Rebuilt for LLVM 18
|
|
|
|
- Resolves: RHEL-27729
|
|
|
|
|
2024-06-24 15:37:22 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.20.1-2
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-02-12 21:51:15 +00:00
|
|
|
* Mon Feb 12 2024 Augusto Caringi <acaringi@redhat.com> - 0.20.1-1
|
|
|
|
- Rebased to version 0.20.1
|
|
|
|
|
2024-01-23 00:46:12 +00:00
|
|
|
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-19 14:40:13 +00:00
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.19.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-10-04 17:47:31 +00:00
|
|
|
* Wed Oct 04 2023 Augusto Caringi <acaringi@redhat.com> - 0.19.1-1
|
|
|
|
- Rebased to version 0.19.1
|
|
|
|
|
2023-07-19 14:53:21 +00:00
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-14 08:01:17 +00:00
|
|
|
* Wed Jun 14 2023 Viktor Malik <vmalik@redhat.com> - 0.18.0-2
|
|
|
|
- Migrate license to SPDX
|
|
|
|
|
2023-05-16 15:15:57 +00:00
|
|
|
* Tue May 16 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.18.0-1
|
|
|
|
- Rebased to version 0.18.0
|
|
|
|
|
2023-01-31 14:56:16 +00:00
|
|
|
* Tue Jan 31 2023 Augusto Caringi <acaringi@redhat.com> - 0.17.0-1
|
|
|
|
- Rebased to version 0.17.0
|
|
|
|
|
2023-01-27 14:38:06 +00:00
|
|
|
* Fri Jan 27 2023 Augusto Caringi <acaringi@redhat.com> - 0.16.0-6
|
|
|
|
- Fix compile with GCC 13
|
|
|
|
|
2023-01-18 23:08:07 +00:00
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-07 17:15:50 +00:00
|
|
|
* Mon Nov 07 2022 Jerome Marchand <jmarchan@redhat.com> - 0.16.0-4
|
|
|
|
- Rebuild for libbpf 1.0
|
|
|
|
|
2022-09-26 13:47:43 +00:00
|
|
|
* Mon Sep 26 2022 Kenneth Topp <toppk@bllue.org> - 0.16.0-3
|
|
|
|
- Enable workaround for non OpaquePointers on LLVM-15
|
|
|
|
|
2022-09-19 00:14:46 +00:00
|
|
|
* Mon Sep 19 2022 Pete Walter <pwalter@fedoraproject.org> - 0.16.0-2
|
|
|
|
- Rebuild for llvm 15
|
|
|
|
|
2022-09-02 19:01:29 +00:00
|
|
|
* Fri Sep 02 2022 Augusto Caringi <acaringi@redhat.com> - 0.16.0-1
|
|
|
|
- Rebased to version 0.16.0
|
|
|
|
|
2022-07-20 22:13:58 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-05 17:54:40 +00:00
|
|
|
* Tue Jul 05 2022 Augusto Caringi <acaringi@redhat.com> - 0.15.0-1
|
|
|
|
- Rebased to version 0.15.0
|
|
|
|
|
2022-04-19 10:06:02 +00:00
|
|
|
* Tue Apr 19 2022 Jerome Marchand <jmarchan@redhat.com> - 0.14.1-1
|
|
|
|
- Rebased to version 0.14.1
|
|
|
|
- Fix cmake build
|
|
|
|
- Rebuild with bcc 0.24
|
|
|
|
|
2022-01-19 22:34:23 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-10-25 15:09:27 +00:00
|
|
|
* Sun Oct 24 2021 Rafael Santos <rdossant@redhat.com> - 0.14.0-1
|
|
|
|
- Rebased to version 0.14.0
|
|
|
|
|
2021-08-09 19:53:56 +00:00
|
|
|
* Mon Aug 09 2021 Augusto Caringi <acaringi@redhat.com> - 0.13.0-1
|
|
|
|
- Rebased to version 0.13.0
|
|
|
|
|
2021-08-03 16:01:26 +00:00
|
|
|
* Tue Aug 03 2021 Rafael Santos <rdossant@redhat.com> - 0.12.1-3
|
|
|
|
- Rebuilt for bcc-0.21.0
|
|
|
|
|
2021-07-21 18:50:42 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-04-27 08:50:55 +00:00
|
|
|
* Tue Apr 27 2021 Jerome Marchand <jmarchan@redhat.com> - 0.12.1-1
|
|
|
|
- Rebased to version 0.12.1
|
|
|
|
|
2021-04-05 21:05:50 +00:00
|
|
|
* Sun Apr 04 2021 Augusto Caringi <acaringi@redhat.com> - 0.12.0-1
|
|
|
|
- Rebased to version 0.12.0
|
|
|
|
|
2021-04-03 00:15:08 +00:00
|
|
|
* Thu Apr 01 2021 Augusto Caringi <acaringi@redhat.com> - 0.11.4-1
|
|
|
|
- Rebased to version 0.11.4
|
|
|
|
|
2021-01-26 01:21:46 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-22 21:42:04 +00:00
|
|
|
* Fri Jan 22 2021 Tom Stellard <tstellar@redhat.com> - 0.11.0-7
|
|
|
|
- Rebuild for clang-11.1.0
|
|
|
|
|
2020-12-04 19:41:20 +00:00
|
|
|
* Fri Dec 04 2020 Jeff Law <law@redhat.com> - 0.11.0-6
|
|
|
|
- Fix missing #include for gcc-11
|
|
|
|
|
2020-11-13 17:36:13 +00:00
|
|
|
* Fri Nov 13 2020 Jerome Marchand <jmarchan@redhat.com> - 0.11.0-5
|
|
|
|
- Rebuilt for LLVM 11
|
|
|
|
|
2020-08-04 18:44:03 +00:00
|
|
|
* Tue Aug 04 2020 Augusto Caringi <acaringi@redhat.com> - 0.11.0-4
|
|
|
|
- Fix FTBFS due to cmake wide changes #1863295
|
|
|
|
- Fix 'bpftrace symbols are stripped' #1865787
|
|
|
|
|
2020-08-01 00:16:15 +00:00
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-27 13:21:37 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-16 19:13:27 +00:00
|
|
|
* Thu Jul 16 2020 Augusto Caringi <acaringi@redhat.com> - 0.11.0-1
|
|
|
|
* Rebased to version 0.11.0
|
|
|
|
|
2020-05-19 22:06:54 +00:00
|
|
|
* Tue May 19 2020 Augusto Caringi <acaringi@redhat.com> - 0.10.0-2
|
|
|
|
- Rebuilt for new bcc/libbpf versions
|
|
|
|
|
2020-04-14 19:08:09 +00:00
|
|
|
* Tue Apr 14 2020 Augusto Caringi <acaringi@redhat.com> - 0.10.0-1
|
|
|
|
- Rebased to version 0.10.0
|
|
|
|
- Dropped support for s390x temporaly due to build error
|
|
|
|
|
2020-02-07 13:44:04 +00:00
|
|
|
* Thu Feb 06 2020 Augusto Caringi <acaringi@redhat.com> - 0.9.4-1
|
|
|
|
- Rebased to version 0.9.4
|
|
|
|
|
2020-01-28 13:15:36 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-09 16:47:17 +00:00
|
|
|
* Thu Nov 21 2019 Augusto Caringi <acaringi@redhat.com> - 0.9.3-1
|
|
|
|
- Rebased to version 0.9.3
|
|
|
|
|
2019-08-01 12:47:07 +00:00
|
|
|
* Thu Aug 01 2019 Augusto Caringi <acaringi@redhat.com> - 0.9.2-1
|
|
|
|
- Rebased to version 0.9.2
|
|
|
|
|
2019-07-24 19:32:48 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-26 21:50:03 +00:00
|
|
|
* Wed Jun 26 2019 Augusto Caringi <acaringi@redhat.com> - 0.9.1-1
|
|
|
|
- Rebased to version 0.9.1
|
|
|
|
|
2019-04-26 08:14:17 +00:00
|
|
|
* Thu Apr 25 2019 Augusto Caringi <acaringi@redhat.com> - 0.9-3
|
|
|
|
- Rebuilt for bcc 0.9.0
|
|
|
|
|
2019-04-22 19:39:44 +00:00
|
|
|
* Mon Apr 22 2019 Neal Gompa <ngompa@datto.com> - 0.9-2
|
|
|
|
- Fix Source0 reference
|
|
|
|
- Use make_build macro for calling make
|
|
|
|
|
2019-04-01 11:36:52 +00:00
|
|
|
* Mon Apr 1 2019 Peter Robinson <pbrobinson@fedoraproject.org> 0.9-1
|
|
|
|
- Build on aarch64 and s390x
|
|
|
|
|
2019-03-25 21:24:14 +00:00
|
|
|
* Mon Mar 25 2019 Augusto Caringi <acaringi@redhat.com> - 0.9-0
|
|
|
|
- Updated to version 0.9
|
|
|
|
|
2019-01-31 14:53:27 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0-2.20181210gitc49b333
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-12-10 14:04:08 +00:00
|
|
|
* Mon Dec 10 2018 Augusto Caringi <acaringi@redhat.com> - 0.0-1.20181210gitc49b333
|
|
|
|
- Updated to latest upstream (c49b333c034a6d29a7ce90f565e27da1061af971)
|
|
|
|
|
2018-11-09 15:51:46 +00:00
|
|
|
* Wed Nov 07 2018 Augusto Caringi <acaringi@redhat.com> - 0.0-1.20181107git029717b
|
|
|
|
- Initial import
|