From c0ef659e89fda1c5d8752471e254334a7db897bc42672488db5bbc0995ae7635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 25 Feb 2025 17:48:41 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main bcc revision 44d1d390400371605565d9686f58189a --- bcc-0.30.0.tar.gz | 3 - bcc-0.33.0.tar.gz | 3 + bcc.changes | 72 +++++++++++++++++++ bcc.spec | 15 ++-- ...move-llvm-dev-dependency-from-libbcc.patch | 49 ------------- deterministic_luajit.patch | 13 ++++ 6 files changed, 97 insertions(+), 58 deletions(-) delete mode 100644 bcc-0.30.0.tar.gz create mode 100644 bcc-0.33.0.tar.gz delete mode 100644 build-remove-llvm-dev-dependency-from-libbcc.patch create mode 100644 deterministic_luajit.patch diff --git a/bcc-0.30.0.tar.gz b/bcc-0.30.0.tar.gz deleted file mode 100644 index bc53f04..0000000 --- a/bcc-0.30.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d113f842965fd84f8bf2f3e9dda73a2cae59a4d27bec3fa87d0b57ee99b58273 -size 6797246 diff --git a/bcc-0.33.0.tar.gz b/bcc-0.33.0.tar.gz new file mode 100644 index 0000000..4ae762a --- /dev/null +++ b/bcc-0.33.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83b486bffca939baf74742c29d4f02ce90df740c26fe147549987f5c1fd32a8b +size 6817549 diff --git a/bcc.changes b/bcc.changes index d2b12c4..ad072c0 100644 --- a/bcc.changes +++ b/bcc.changes @@ -1,3 +1,68 @@ +------------------------------------------------------------------- +Tue Feb 11 14:27:17 UTC 2025 - Wolfgang Frisch + +- luajit: enable deterministic bytecode generation (boo#1236871) + * add deterministic_luajit.patch + * the bcc-lua package should now be reproducible + +------------------------------------------------------------------- +Mon Jan 20 10:09:15 UTC 2025 - Wolfgang Frisch + +- Update to version 0.33.0 + * Support for kernel up to 6.12 + * Add new bcc tool numasched + * syms: Initialize ModulePath::fd_ to invalid FD + * libbpf-tools/memleak: Fix off-by-one error + * libbpf-tools/slabratetop: Fix failed to create kprobe error + * libbpf_tools/profile: Support PID namespace mapping + * libbpf-tools/mountsnoop: Support fsopen,fsconfig,fsmount,move_mount syscalls + * tools/oomkill: get application level stack trace + * tools/profile: Add additional information to backtrace + * tools/mountsnoop: Fix fsmount printing wrong flags + * tools/compactsnoop: Add aarch64 support + * doc update, other bug fixes and tools improvement. + +------------------------------------------------------------------- +Thu Dec 19 06:46:58 UTC 2024 - Shung-Hsi Yu + +- Default to LLVM 19 in Factory and SLE15-SP7 +- Drop fix-alignment-issue-on-x86_64-due-to-consecutive-bit.patch + (bsc#1219096) + * since LLVM 19 this is no longer required + +------------------------------------------------------------------- +Thu Nov 28 14:41:06 UTC 2024 - Wolfgang Frisch + +- Removed patch: build-remove-llvm-dev-dependency-from-libbcc.patch + It is included in the latest upstream release. + +- Update to version 0.32.0 + * Support for kernel up to 6.11. + * bcc tool update: wakeuptime, readahead, shmsnoop, offcputime, cachestat, + cachetop, hardirqs + * libbpf tool update: futexctn, profile, readhead, softirqs, hardirqs + * Multiple enhancements for memleak: better error path checking, adding + mremap uprobe, etc. + * Support get pid/tgid in pid namespaces (cpudist, profile) + * multiple pid filtering support: profile, offcputime + * detect whether elf binary is PIE even if the binary is marked as DYN + * Fix several compilation issues with llvm20 + * doc update, other bug fixes and tools improvement. + +- Update to version 0.31.0 + * Support for kernel up to 6.9. + * Add support for bcachefs to fsdist and fsslower tools + * libbpf tool update: memleak, syncsnoop, numamove, syscount, vfsstat, + tcptop, capable, syncsnoop, sigsnoop, etc. + * bcc tool update: biolatency, biosnoop, biotop, vfsstat, kvmexit, sslsniff, + swapin, etc. + * build: Remove llvm-dev dependency from libbcc + * build: Remove dependency on LLVM header from libbcc packages + * usdt: Fix bare register dereference on aarch64 + * Extend `bcc_proc` API which allows to limit search to specific pid + * Fix several flaky tests. + * doc update, other bug fixes and tools improvement. + ------------------------------------------------------------------- Tue Jun 4 06:14:17 UTC 2024 - Shung-Hsi Yu @@ -9,6 +74,13 @@ Tue Jun 4 05:41:57 UTC 2024 - Shung-Hsi Yu - Remove bcc-devel's requirement on llvm-devel * add build-remove-llvm-dev-dependency-from-libbcc.patch +------------------------------------------------------------------- +Fri May 3 13:46:02 UTC 2024 - Shung-Hsi Yu + +- Fix incorrect offset calculation when consecutive bitfields are + present (bsc#1219096) + * add fix-alignment-issue-on-x86_64-due-to-consecutive-bit.patch + ------------------------------------------------------------------- Wed Mar 27 09:57:56 UTC 2024 - Shung-Hsi Yu diff --git a/bcc.spec b/bcc.spec index b920d15..9ce505a 100644 --- a/bcc.spec +++ b/bcc.spec @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,13 +28,16 @@ # Use default LLVM on openSUSE unless it is not yet supported %if 0%{?suse_version} >= 1600 || 0%{?is_opensuse} - %if 0%{?product_libs_llvm_ver} > 17 - %define llvm_major_version 17 + %if 0%{?product_libs_llvm_ver} > 19 + %define llvm_major_version 19 %else %define llvm_major_version %{nil} %endif %else # Hard-code latest LLVM for SLES, the default version is too old + %if 0%{?sle_version} == 150700 + %define llvm_major_version 19 + %else %if 0%{?sle_version} == 150600 %define llvm_major_version 17 %else @@ -46,18 +49,18 @@ %endif %endif %endif + %endif %endif Name: bcc -Version: 0.30.0 +Version: 0.33.0 Release: 0 Summary: BPF Compiler Collection (BCC) License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM build-remove-llvm-dev-dependency-from-libbcc.patch -- based on PR 5018 -Patch1: build-remove-llvm-dev-dependency-from-libbcc.patch +Patch0: deterministic_luajit.patch ExcludeArch: ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 diff --git a/build-remove-llvm-dev-dependency-from-libbcc.patch b/build-remove-llvm-dev-dependency-from-libbcc.patch deleted file mode 100644 index 560a076..0000000 --- a/build-remove-llvm-dev-dependency-from-libbcc.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 5b8e284d06743e21be814913f187957e43122751 Mon Sep 17 00:00:00 2001 -From: Manu Bretelle -Date: Wed, 29 May 2024 14:38:22 -0700 -Subject: [PATCH 1/2] build: remove llvm-dev dependency from libbcc - -In #4737 I added depedency on llvm-config.h in order to discover what LLVM version -is being used. This was only meant to be used at build time. -By adding llvm-config.h in bpf_module.h, a public header of libbcc, I introduced -a dependency on llvm-dev to libbcc which is unnecessary. - -This change removes the include from `bpf_module.h`, which should be enough, and -add it to `bpf_module.cc` instead. - -Fixes #4997 - -Signed-off-by: Manu Bretelle ---- - src/cc/bpf_module.cc | 1 + - src/cc/bpf_module.h | 2 -- - 2 files changed, 1 insertion(+), 2 deletions(-) - -diff --git a/src/cc/bpf_module.cc b/src/cc/bpf_module.cc -index 91ab9af6..c0dd0119 100644 ---- a/src/cc/bpf_module.cc -+++ b/src/cc/bpf_module.cc -@@ -17,6 +17,7 @@ - - #include - #include -+#include - #if LLVM_VERSION_MAJOR <= 16 - #include - #endif -diff --git a/src/cc/bpf_module.h b/src/cc/bpf_module.h -index 56786e90..fc491cfe 100644 ---- a/src/cc/bpf_module.h -+++ b/src/cc/bpf_module.h -@@ -22,8 +22,6 @@ - #include - #include - --#include -- - #include "bcc_exception.h" - #include "table_storage.h" - --- -2.45.1 - diff --git a/deterministic_luajit.patch b/deterministic_luajit.patch new file mode 100644 index 0000000..b46310f --- /dev/null +++ b/deterministic_luajit.patch @@ -0,0 +1,13 @@ +Index: bcc-0.33.0/src/lua/CMakeLists.txt +=================================================================== +--- bcc-0.33.0.orig/src/lua/CMakeLists.txt ++++ bcc-0.33.0/src/lua/CMakeLists.txt +@@ -15,7 +15,7 @@ if (LUAJIT_LIBRARIES AND LUAJIT) + + ADD_CUSTOM_COMMAND( + OUTPUT bcc.o +- COMMAND ${LUAJIT} -bg bcc.lua bcc.o ++ COMMAND ${LUAJIT} -bgd bcc.lua bcc.o + DEPENDS bcc.lua + ) +