commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-11-04 18:27:00 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.11331 (New) Package is "bcc" Wed Nov 4 18:27:00 2020 rev:42 rq:845896 version:0.17.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-09-25 16:37:28.436206668 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.11331/bcc.changes 2020-11-04 18:32:05.156188461 +0100 @@ -1,0 +2,28 @@ +Wed Nov 4 07:23:22 UTC 2020 - Gary Ching-Pang Lin + +- Update to 0.17.0 + + Support for kernel up to 5.9 + + usdt: add uprobe refcnt support + + add bpf iterator C++ support + + new bcc tools: tcprtt, netqtop, swapin, tcpsynbl, threadsnoop + + tcpconnect: add DNS correlation to connect tracking + + new libbpf-tools: llcstat, numamove, runqlen, runqlat, +softirgs, hardirqs + + doc update, bug fixes and some additional arguments for tools +- Update libbpf to 0.2 + + full support for BPF-to-BPF function calls, no more need for +__always_inline; + + support for multiple BPF programs with the same section name; + + support for accessing in-kernel per-CPU variables; + + support for type and enum value CO-RE relocations; + + libbpf will auto-adjust CO-RE direct memory loads to adjust +to 32-bit host architecture; + + BPF_PROG_BIND_MAP support, .rodata will be bound automatically +if kernel supports it; + + new APIs for programmatic generation of BTF; + + support for big-endian and little-endian endianness in BTF; + + sleepable fentry/fexit/fmod_ret/lsm BPF program. +- Enable lua support only for Tumbleweed to close the gap between + SLE and openSUSE Leap + +--- Old: bcc-0.16.0.tar.gz libbpf-0.1.1.tar.gz New: bcc-0.17.0.tar.gz libbpf-0.2.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.HECgIq/_old 2020-11-04 18:32:06.144186270 +0100 +++ /var/tmp/diff_new_pack.HECgIq/_new 2020-11-04 18:32:06.148186262 +0100 @@ -16,7 +16,7 @@ # -%if 0%{?is_opensuse} == 1 +%if 0%{?suse_version} > 1500 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} %else @@ -26,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.1.1 +%define libbpf_version 0.2 Name: bcc -Version:0.16.0 +Version:0.17.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 ++ bcc-0.16.0.tar.gz -> bcc-0.17.0.tar.gz ++ 9839 lines of diff (skipped) ++ libbpf-0.1.1.tar.gz -> libbpf-0.2.tar.gz ++ 12567 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-09-25 16:36:10 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.4249 (New) Package is "bcc" Fri Sep 25 16:36:10 2020 rev:41 rq:837287 version:0.16.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-08-07 14:10:16.538153355 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.4249/bcc.changes2020-09-25 16:37:28.436206668 +0200 @@ -1,0 +2,41 @@ +Fri Sep 25 06:40:16 UTC 2020 - Gary Ching-Pang Lin + +- Update to 0.16.0 + + Support for kernel up to 5.8 + + trace.py: support kprobe/uprobe func offset + + support raw perf config for perf_event_open in python + + add BPFQueueStackTable support + + added Ringbuf support support + + libbpf-tools: readahead, biosnoop, bitesize, tcpconnlat, +biopattern, biostacks + + bug fixes and some additional arguments for tools +- Update libbpf to 0.1.1 + + __ksym extern variables support for getting kernel symbol +addresses; + + BPF XDP link support; + + bpf_program__set_autoload() to disable loading and verifying +specific BPF programs; + + support for attaching map elements BPF iterator programs; + + new getters/setters for more control over BPF map definitions; + + all destructor-like APIs (e.g., perf_buffer__free() and +bpf_object__close()) now accept pointers returned on error +(in addition to NULL and valid pointers) and ignore them, no +need to guard destructors with extra checks now; + + bpf_link__detach() for force-detaching link, while it's still +alive; + + btf__parse_raw() and btf__parse() APIs for more convenient and +flexible BTF parsing. + + fix an issue with loading XDP programs on older kernels. + + CO-RE relocations in .text section (in sub-programs) are now +performed properly; + + vmlinux BTF is not loaded unnecessarily twice; + + perf_buffer__new() can be used on old kernels down to at least +4.9 version; + + libbpf's internal hashmap fixes for 32-bit architectures; + + few BTF sanitization bugs and memory leaks fixed; + + btf_dump handling of GCC built-in types for Arm NEON fixed; + + BTF-defined map-in-map initialization fixed for 32-bit +architectures; + + various BTF fixes for 32-bit architectures. + +--- Old: bcc-0.15.0.tar.gz libbpf-0.0.9.tar.gz New: bcc-0.16.0.tar.gz libbpf-0.1.1.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.0GVtcU/_old 2020-09-25 16:37:29.300207435 +0200 +++ /var/tmp/diff_new_pack.0GVtcU/_new 2020-09-25 16:37:29.304207439 +0200 @@ -26,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.9 +%define libbpf_version 0.1.1 Name: bcc -Version:0.15.0 +Version:0.16.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 ++ bcc-0.15.0.tar.gz -> bcc-0.16.0.tar.gz ++ 8753 lines of diff (skipped) ++ libbpf-0.0.9.tar.gz -> libbpf-0.1.1.tar.gz ++ 87222 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-08-07 14:09:49 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.3399 (New) Package is "bcc" Fri Aug 7 14:09:49 2020 rev:40 rq:824771 version:0.15.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-07-03 00:13:43.072325873 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.3399/bcc.changes2020-08-07 14:10:16.538153355 +0200 @@ -1,0 +2,9 @@ +Fri Aug 7 04:05:51 UTC 2020 - Gary Ching-Pang Lin + +- Modify URLs to get the tarballs with names not just versions +- Drop _constraints + + We don't link the static clang libraries anymore and this +reduces the requirements of hardware. +- Drop the unused _service file + +--- Old: _constraints _service v0.0.9.tar.gz v0.15.0.tar.gz New: bcc-0.15.0.tar.gz libbpf-0.0.9.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.8uN3Jy/_old 2020-08-07 14:10:19.766147611 +0200 +++ /var/tmp/diff_new_pack.8uN3Jy/_new 2020-08-07 14:10:19.766147611 +0200 @@ -35,8 +35,8 @@ License:Apache-2.0 Group: Development/Tools/Other URL:https://github.com/iovisor/bcc -Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz -Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz +Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz#/libbpf-%{libbpf_version}.tar.gz ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -129,7 +129,7 @@ Documentation on how to write programs with the BPF Compiler Collection. %prep -%setup -q -D -n %{name}-%{version} +%setup -q pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-07-03 00:11:13 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.3060 (New) Package is "bcc" Fri Jul 3 00:11:13 2020 rev:39 rq:818197 version:0.15.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-06-04 17:56:10.872954343 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.3060/bcc.changes2020-07-03 00:13:43.072325873 +0200 @@ -1,0 +2,28 @@ +Thu Jul 2 02:25:31 UTC 2020 - Gary Ching-Pang Lin + +- Update to 0.15.0 + + Support for kernel up to 5.7 + + new tools: funcinterval.py, dirtop.py + + support lsm bpf programs + + support multiple pid/tids for offwaketime + + usdt: add helpers to set semaphore values + + turn off x86 jump table optimization during jit compilation + + add support to use bpf_probe_read[str}{_user,kernel} in all bpf + + programs, fail back to old bpf_probe_read[_str] for old kernels + + tools: add filtering by mount namespace + + libbpf-tools: cpudist, syscount, execsnoop, vfsstat + + lots of bug fixes and a few additional arguments for tools +- Update libbpf to 0.0.9 + + BTF-defined map-in-map support; + + bpf_link support expanded to support new kernel BPF link objects; + + BPF_ENABLE_STATS API; + + new BPF ringbuf map support, added ring_buffer API for consuming; + + bpf_link-backed netns attachment (flow_dissector). + + bpf_object__load() better error code propagation; + + few memory leaks and corruptions fixed; + + register naming in PT_REGS s390 macros; + + .bss pre-setting through skeleton is now supported as well. +- Drop upstreamed patch + + bcc-bsc1172493-Make-reading-blacklist-optional.patch + +--- Old: bcc-bsc1172493-Make-reading-blacklist-optional.patch v0.0.8.tar.gz v0.14.0.tar.gz New: v0.0.9.tar.gz v0.15.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.9GYumY/_old 2020-07-03 00:13:50.144349288 +0200 +++ /var/tmp/diff_new_pack.9GYumY/_new 2020-07-03 00:13:50.148349301 +0200 @@ -26,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.8 +%define libbpf_version 0.0.9 Name: bcc -Version:0.14.0 +Version:0.15.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -37,7 +37,6 @@ URL:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz -Patch1: bcc-bsc1172493-Make-reading-blacklist-optional.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -132,8 +131,6 @@ %prep %setup -q -D -n %{name}-%{version} -%patch1 -p1 - pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 popd ++ v0.0.8.tar.gz -> v0.0.9.tar.gz ++ 3550 lines of diff (skipped) ++ v0.0.8.tar.gz -> v0.15.0.tar.gz ++ 318848 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-06-04 17:55:50 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.3606 (New) Package is "bcc" Thu Jun 4 17:55:50 2020 rev:38 rq:811327 version:0.14.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-04-23 18:32:41.664346781 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.3606/bcc.changes2020-06-04 17:56:10.872954343 +0200 @@ -1,0 +2,7 @@ +Thu Jun 4 07:31:29 UTC 2020 - Gary Ching-Pang Lin + +- Add bcc-bsc1172493-Make-reading-blacklist-optional.patch to make + reading kprobe blacklist optional so that the bcc scripts can + work with the locked down kernel (bsc#1172493) + +--- New: bcc-bsc1172493-Make-reading-blacklist-optional.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.Gs12kQ/_old 2020-06-04 17:56:11.416956016 +0200 +++ /var/tmp/diff_new_pack.Gs12kQ/_new 2020-06-04 17:56:11.420956028 +0200 @@ -37,6 +37,7 @@ URL:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz +Patch1: bcc-bsc1172493-Make-reading-blacklist-optional.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -131,6 +132,8 @@ %prep %setup -q -D -n %{name}-%{version} +%patch1 -p1 + pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 popd ++ bcc-bsc1172493-Make-reading-blacklist-optional.patch ++ >From 5558e36bd97ace7bc3efe3a70d0c9d4fc0d34e2a Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Fri, 29 May 2020 15:33:25 -0700 Subject: [PATCH] Make reading blacklist from debugfs optional With lockdown enabled one sees the following: ``` $ sudo /usr/share/bcc/tools/funccount -Ti 1 run_timer_softirq [Errno 1] Operation not permitted: '/sys/kernel/debug/tracing/../kprobes/blacklist' ``` Which is accompanied by the following in `dmesg`: ``` [Fri May 29 22:12:47 2020] Lockdown: funccount: debugfs access is restricted; see man kernel_lockdown.7 ``` Since blacklist is not a required feature, let's make reading from it optional, so that bcc can work out of the box. --- src/python/bcc/__init__.py | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/python/bcc/__init__.py b/src/python/bcc/__init__.py index 8496ee62..749ebfe5 100644 --- a/src/python/bcc/__init__.py +++ b/src/python/bcc/__init__.py @@ -546,8 +546,15 @@ class BPF(object): @staticmethod def get_kprobe_functions(event_re): -with open("%s/../kprobes/blacklist" % TRACEFS, "rb") as blacklist_f: -blacklist = set([line.rstrip().split()[1] for line in blacklist_f]) +blacklist_file = "%s/../kprobes/blacklist" % TRACEFS +try: +with open(blacklist_file, "rb") as blacklist_f: +blacklist = set([line.rstrip().split()[1] for line in blacklist_f]) +except IOError as e: +if e.errno != errno.EPERM: +raise e +blacklist = set([]) + fns = [] in_init_section = 0 @@ -607,7 +614,7 @@ class BPF(object): global _num_open_probes del self.kprobe_fds[name] _num_open_probes -= 1 - + def _add_uprobe_fd(self, name, fd): global _num_open_probes self.uprobe_fds[name] = fd @@ -643,7 +650,7 @@ class BPF(object): if name.startswith(prefix): return self.get_syscall_fnname(name[len(prefix):]) return name - + def attach_kprobe(self, event=b"", event_off=0, fn_name=b"", event_re=b""): event = _assert_is_bytes(event) fn_name = _assert_is_bytes(fn_name) -- 2.25.1
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-04-23 18:32:39 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.2738 (New) Package is "bcc" Thu Apr 23 18:32:39 2020 rev:37 rq:796371 version:0.14.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-03-04 09:39:31.349896030 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.2738/bcc.changes2020-04-23 18:32:41.664346781 +0200 @@ -1,0 +2,25 @@ +Thu Apr 23 02:07:32 UTC 2020 - Gary Ching-Pang Lin + +- Amend the sed rule for python3 shebang + +--- +Wed Apr 22 01:41:35 UTC 2020 - Gary Ching-Pang Lin + +- Update to 0.14.0 + + Support for kernel up to 5.6 + + new tools: biolatpcts.py + + libbpf-tools: tools based on CORE and libbpf library directly + + add --cgroupmap to various tools, filtering based cgroup + + support kfunc (faster kprobe) for vfsstat, klockstat and +opensnoop + + lots of bug fixes and a few additional arguments for tools +- Update libbpf to 0.0.8 + + Add support for BPF-LSM + + CO-RE relocation edge cases + + expected_attach_type handling fixes at load time + + fixes in hanling kernels without BTF support + + internal map sanitization improvements +- Drop support-clang9.patch + + Upstream fixed it in another way. + +--- Old: support-clang9.patch v0.0.7.tar.gz v0.13.0.tar.gz New: v0.0.8.tar.gz v0.14.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.gOZzdj/_old 2020-04-23 18:32:43.516350324 +0200 +++ /var/tmp/diff_new_pack.gOZzdj/_new 2020-04-23 18:32:43.524350339 +0200 @@ -26,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.7 +%define libbpf_version 0.0.8 Name: bcc -Version:0.13.0 +Version:0.14.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -37,7 +37,6 @@ URL:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz -Patch1: support-clang9.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -131,9 +130,6 @@ %prep %setup -q -D -n %{name}-%{version} -%if %{?pkg_vcmp:%pkg_vcmp llvm-devel >= 9.0}%{!?pkg_vcmp:0} -%patch1 -p1 -%endif pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 @@ -182,7 +178,7 @@ find tools/ examples/ -type f -exec \ sed -Ei '1s|^#!/usr/bin/env bcc-lua|#!/usr/bin/bcc-lua|' {} + find tools/ examples/ -type f -exec \ - sed -i '1s|/bin/python|/bin/python3|g' {} + + sed -i '1s|/bin/python$|/bin/python3|g' {} + %install pushd build ++ v0.0.7.tar.gz -> v0.0.8.tar.gz ++ 5338 lines of diff (skipped) ++ v0.0.7.tar.gz -> v0.14.0.tar.gz ++ 314209 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-03-04 09:39:29 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.26092 (New) Package is "bcc" Wed Mar 4 09:39:29 2020 rev:36 rq:781110 version:0.13.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2020-01-22 22:43:31.088492464 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.26092/bcc.changes 2020-03-04 09:39:31.349896030 +0100 @@ -1,0 +2,35 @@ +Tue Mar 3 01:12:51 UTC 2020 - Gary Ching-Pang Lin + +- Update to 0.13.0 + + Support for kernel up to 5.5 + + bindsnoop tool to track tcp/udp bind information + + added compile-once run-everywhere based libbpf-tools, currently +only runqslower is implemented. + + new map support: sockhash, sockmap, sk_storage, cgroup_storage + + enable to run github actions on the diff + + cgroupmap based cgroup filtering for opensnoop, execsnoop and +bindsnoop. + + lots of bug fixes. +- Update libbpf to 0.0.7 + + Major new features: +- BPF skeleton support; +- Kconfig extern variables support; +- STRUCT_OPS support; +- support for BPF program extensions; +- cgroup MULTI-mode support (bpf_prog_attach_xattr() API). +- bpf_send_signal_thread() BPF helper; + + Usability improvements: +- BPF CO-RE improvements (flexible array, LDX/ST/STX instructions, + improved conditional relocations); +- generic bpf_program__attach() API; +- SK_REUSEPORT program type support; +- bpf_link_disconnect(); +- bpf_find_kernel_btf() API exposed; +- large instruction limit probing added; +- improved error message for RLIMIT_MEMLOCK. + + Fixes: +- fix perf_buffer handling of offline/missing CPUs; +- various other fixes and usability improvements. +- Drop upstreamed fix: bcc-fix-test_map_in_map.patch + +--- Old: bcc-fix-test_map_in_map.patch v0.0.6.tar.gz v0.12.0.tar.gz New: v0.0.7.tar.gz v0.13.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.LZiAZ9/_old 2020-03-04 09:39:32.473896704 +0100 +++ /var/tmp/diff_new_pack.LZiAZ9/_new 2020-03-04 09:39:32.477896706 +0100 @@ -26,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.6 +%define libbpf_version 0.0.7 Name: bcc -Version:0.12.0 +Version:0.13.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -38,7 +38,6 @@ Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz Patch1: support-clang9.patch -Patch2: bcc-fix-test_map_in_map.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -135,7 +134,6 @@ %if %{?pkg_vcmp:%pkg_vcmp llvm-devel >= 9.0}%{!?pkg_vcmp:0} %patch1 -p1 %endif -%patch2 -p1 pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 @@ -197,6 +195,9 @@ popd +# Remove the static libraries +rm -f %{buildroot}/%{_libdir}/libbcc*.a + %post -n libbcc0 -p /sbin/ldconfig %postun -n libbcc0 -p /sbin/ldconfig ++ v0.0.6.tar.gz -> v0.0.7.tar.gz ++ 10423 lines of diff (skipped) ++ v0.0.6.tar.gz -> v0.13.0.tar.gz ++ 292229 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2020-01-22 22:43:15 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.26092 (New) Package is "bcc" Wed Jan 22 22:43:15 2020 rev:35 rq:766225 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-12-24 14:30:10.838582063 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.26092/bcc.changes 2020-01-22 22:43:31.088492464 +0100 @@ -1,0 +2,6 @@ +Mon Jan 20 12:32:51 UTC 2020 - Ondřej Súkup + +- drop python2 bindings +- don't require python3-devel package + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.WOwzem/_old 2020-01-22 22:43:32.488493168 +0100 +++ /var/tmp/diff_new_pack.WOwzem/_new 2020-01-22 22:43:32.492493170 +0100 @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -57,10 +57,7 @@ BuildRequires: luajit-devel %endif BuildRequires: pkg-config -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-base %description BCC is a toolkit for creating efficient kernel tracing and manipulation @@ -83,18 +80,6 @@ %description devel Headers and pkg-config build descriptions for developing BCC programs. -%package -n python2-bcc -Summary:Python2 bindings for the BPF Compiler Collection -Group: Development/Languages/Python -Requires: kernel >= 4.1.0 -Requires: kernel-devel >= 4.1.0 -Requires: libbcc0 = %{version} -Provides: python-bcc = %{version} -Obsoletes: python-bcc < %{version} - -%description -n python2-bcc -Python 2.x bindings for the BPF Compiler Collection. - %package -n python3-bcc Summary:Python3 bindings for the BPF Compiler Collection Group: Development/Languages/Python @@ -210,13 +195,6 @@ rm -f %{buildroot}/%{_bindir}/bps %endif -# For python2-bcc (should be removed in the future) -cmake -DPYTHON_CMD=python2 .. -pushd src/python/ -make %{?_smp_mflags} VERBOSE=1 -%make_install -popd - popd %post -n libbcc0 -p /sbin/ldconfig @@ -235,9 +213,6 @@ %{_libdir}/libbcc.so.* %{_libdir}/libbcc_bpf.so.* -%files -n python2-bcc -%{python_sitelib}/bcc* - %files -n python3-bcc %{python3_sitelib}/bcc*
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-12-24 14:30:02 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.6675 (New) Package is "bcc" Tue Dec 24 14:30:02 2019 rev:34 rq:759094 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-12-16 15:20:17.791140964 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.6675/bcc.changes2019-12-24 14:30:10.838582063 +0100 @@ -1,0 +2,5 @@ +Mon Dec 23 13:25:47 UTC 2019 - Ismail Dönmez + +- Fix build when pkg_vcmp is not defined + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.qN0ILD/_old 2019-12-24 14:30:11.762582510 +0100 +++ /var/tmp/diff_new_pack.qN0ILD/_new 2019-12-24 14:30:11.770582514 +0100 @@ -147,7 +147,7 @@ %prep %setup -q -D -n %{name}-%{version} -%if %{pkg_vcmp llvm-devel >= 9.0} +%if %{?pkg_vcmp:%pkg_vcmp llvm-devel >= 9.0}%{!?pkg_vcmp:0} %patch1 -p1 %endif %patch2 -p1
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-12-16 15:20:14 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.4691 (New) Package is "bcc" Mon Dec 16 15:20:14 2019 rev:33 rq:757219 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-11-19 12:59:15.482136613 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.4691/bcc.changes2019-12-16 15:20:17.791140964 +0100 @@ -1,0 +2,51 @@ +Mon Dec 16 01:46:17 UTC 2019 - Gary Ching-Pang Lin + +- Update to 0.12.0 + + Support for kernel up to 5.4 + + klockstat tool to track kernel mutex lock statistics + + cmake option CMAKE_USE_LIBBPF_PACKAGE to build a bcc shared +library + + linking with distro libbpf_static.a + + new map.lookup_or_try_init() API to remove hidden return in +map.lookup_or_init() + + BPF_ARRAY_OF_MAPS and BPF_HASH_OF_MAPS support + + support symbol offset for uprobe in both C++ and python API, +kprobe already has the support + + bug fixes for trace.py, tcpretrans.py, runqslower.py, etc. +- Update libbpf to 0.0.6 + + New features +- new extensible bpf_object__open_{file,mem} APIs and + DECLARE_LIBBPF_OPTS() macro to go with them +- bpf_helpers.h, bpf_endian.h, and bpf_tracing.h are now + distributed with libbpf +- BPF CO-RE: added field size, field existence, and bitfield + relocation support +- BPF CO-RE: BPF_CORE_READ(), bpf_core_field_exists(), + bpf_core_field_size() and other BPF CO-RE related helpers + available through bpf_core_read.h header +- bpf_object__open() API now auto-detects program type from + its section name +- BPF_PROG_TRACING programs support (incuding BTF-typed raw + tracepoints, fentry/fexit programs) +- mmap() support for BPF global variables +- declarative map pinning support added +- probe_read_{user,kernel}[_str]() BPF helpers added +- bpf_get_link_xdp_info() function to get more XDP information + added +- a bunch of other AF_XDP changes + + Usability improvements +- no need for int version SEC('version') = 1; anymore +- raw_tp/tp and uprobe/uretprobe section prefixes added +- new bpf_program__get_{type,expected_attach_type} getters +- preserve error code on program load failure + + Fixes +- btf_dump padding handling +- bpf_object__name() returning name, not path +- ELF section handling off-by-one bug fix +- mem leak/double free fix in BPF program relocation code +- Replace lua51-luajit-devel with luajit-devel to reflect the + recent change in Factory (bsc#1159191) +- Add bcc-fix-test_map_in_map.patch to fix the build error in the + test case + +--- Old: v0.0.5.tar.gz v0.11.0.tar.gz New: bcc-fix-test_map_in_map.patch v0.0.6.tar.gz v0.12.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.N2iN9n/_old 2019-12-16 15:20:22.867138850 +0100 +++ /var/tmp/diff_new_pack.N2iN9n/_new 2019-12-16 15:20:22.871138849 +0100 @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,18 +26,19 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.5 +%define libbpf_version 0.0.6 Name: bcc -Version:0.11.0 +Version:0.12.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 Group: Development/Tools/Other -Url:https://github.com/iovisor/bcc +URL:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz Patch1: support-clang9.patch +Patch2: bcc-fix-test_map_in_map.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -49,15 +50,12 @@ %if 0%{?suse_version} > 1320 BuildRequires: clang-devel BuildRequires: llvm-gold -%if %{with_lua} -BuildRequires: lua51-luajit-devel -%endif %else BuildRequires: libstdc++-devel +%endif %if %{with_lua} BuildRequires: luajit-devel %endif -%endif BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: python-setuptools @@ -152,6 +150,7 @@ %if %{pkg_vcmp llvm-devel >= 9.0} %patch1 -p1 %endif +%patch2 -p1 pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 ++ bcc-fix-test_map_in_map.patch ++ diff --git a/tests/c
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-11-19 12:59:14 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.26869 (New) Package is "bcc" Tue Nov 19 12:59:14 2019 rev:32 rq:749410 version:0.11.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-11-01 15:13:56.548739753 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.26869/bcc.changes 2019-11-19 12:59:15.482136613 +0100 @@ -1,0 +2,5 @@ +Tue Nov 19 03:24:48 UTC 2019 - Gary Ching-Pang Lin + +- Enable USDT for s390x since 0.10.0 already supports it + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.6q6IiJ/_old 2019-11-19 12:59:16.246136131 +0100 +++ /var/tmp/diff_new_pack.6q6IiJ/_new 2019-11-19 12:59:16.250136129 +0100 @@ -187,7 +187,7 @@ -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ -DLUAJIT_LIBRARY=%{_libdir}/lib`pkg-config --variable=libname luajit`.so \ %endif -%ifarch %arm || %ix86 || s390x +%ifarch %arm || %ix86 -DENABLE_USDT=OFF \ %endif ..
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-11-01 15:13:54 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.2990 (New) Package is "bcc" Fri Nov 1 15:13:54 2019 rev:31 rq:744602 version:0.11.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-10-17 12:23:07.703045983 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.2990/bcc.changes2019-11-01 15:13:56.548739753 +0100 @@ -1,0 +2,6 @@ +Thu Oct 31 14:39:21 UTC 2019 - Ismail Dönmez + +- Add support-clang9.patch and apply it for llvm >= 9 +- Fix sed call for python + +--- New: support-clang9.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.AF4nUn/_old 2019-11-01 15:13:57.336740781 +0100 +++ /var/tmp/diff_new_pack.AF4nUn/_new 2019-11-01 15:13:57.340740786 +0100 @@ -37,6 +37,7 @@ Url:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz +Patch1: support-clang9.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -147,7 +148,11 @@ Documentation on how to write programs with the BPF Compiler Collection. %prep -%setup -D -n %{name}-%{version} +%setup -q -D -n %{name}-%{version} +%if %{pkg_vcmp llvm-devel >= 9.0} +%patch1 -p1 +%endif + pushd src/cc/libbpf tar xf %{SOURCE1} --strip 1 popd @@ -195,7 +200,7 @@ find tools/ examples/ -type f -exec \ sed -Ei '1s|^#!/usr/bin/env bcc-lua|#!/usr/bin/bcc-lua|' {} + find tools/ examples/ -type f -exec \ - sed -Ei 's|"python"|"python3"|g' {} + + sed -i '1s|/bin/python|/bin/python3|g' {} + %install pushd build ++ support-clang9.patch ++ Index: bcc-0.11.0/CMakeLists.txt === --- bcc-0.11.0.orig/CMakeLists.txt +++ bcc-0.11.0/CMakeLists.txt @@ -42,20 +42,8 @@ find_package(LibElf REQUIRED) # clang is linked as a library, but the library path searching is # primitively supported, unlike libLLVM set(CLANG_SEARCH "/opt/local/llvm/lib;/usr/lib/llvm-3.7/lib;${LLVM_LIBRARY_DIRS}") -find_library(libclangAnalysis NAMES clangAnalysis HINTS ${CLANG_SEARCH}) -find_library(libclangAST NAMES clangAST HINTS ${CLANG_SEARCH}) -find_library(libclangBasic NAMES clangBasic HINTS ${CLANG_SEARCH}) -find_library(libclangCodeGen NAMES clangCodeGen HINTS ${CLANG_SEARCH}) -find_library(libclangDriver NAMES clangDriver HINTS ${CLANG_SEARCH}) -find_library(libclangEdit NAMES clangEdit HINTS ${CLANG_SEARCH}) -find_library(libclangFrontend NAMES clangFrontend HINTS ${CLANG_SEARCH}) -find_library(libclangLex NAMES clangLex HINTS ${CLANG_SEARCH}) -find_library(libclangParse NAMES clangParse HINTS ${CLANG_SEARCH}) -find_library(libclangRewrite NAMES clangRewrite HINTS ${CLANG_SEARCH}) -find_library(libclangSema NAMES clangSema HINTS ${CLANG_SEARCH}) -find_library(libclangSerialization NAMES clangSerialization HINTS ${CLANG_SEARCH}) -find_library(libclangASTMatchers NAMES clangASTMatchers HINTS ${CLANG_SEARCH}) -if(libclangBasic STREQUAL "libclangBasic-NOTFOUND") +find_library(libclang-cpp NAMES clang-cpp HINTS ${CLANG_SEARCH}) +if(libclang-cpp STREQUAL "libclang-cpp-NOTFOUND") message(FATAL_ERROR "Unable to find clang libraries") endif() FOREACH(DIR ${LLVM_INCLUDE_DIRS}) Index: bcc-0.11.0/cmake/clang_libs.cmake === --- bcc-0.11.0.orig/cmake/clang_libs.cmake +++ bcc-0.11.0/cmake/clang_libs.cmake @@ -23,25 +23,7 @@ llvm_expand_dependencies(llvm_libs ${_ll endif() # order is important -set(clang_libs - ${libclangFrontend} - ${libclangSerialization} - ${libclangDriver}) - -if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 8 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 8) - list(APPEND clang_libs ${libclangASTMatchers}) -endif() - -list(APPEND clang_libs - ${libclangParse} - ${libclangSema} - ${libclangCodeGen} - ${libclangAnalysis} - ${libclangRewrite} - ${libclangEdit} - ${libclangAST} - ${libclangLex} - ${libclangBasic}) +set(clang_libs ${libclang-cpp}) # prune unused llvm static library stuff when linking into the new .so set(_exclude_flags)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-10-17 12:22:59 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.2352 (New) Package is "bcc" Thu Oct 17 12:22:59 2019 rev:30 rq:739021 version:0.11.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-06-04 12:15:13.627765043 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.2352/bcc.changes2019-10-17 12:23:07.703045983 +0200 @@ -1,0 +2,28 @@ +Mon Oct 14 04:25:16 UTC 2019 - Gary Ching-Pang Lin + +- Update to 0.11.0 + + Support for kernel up to 5.3 + + Corresponding libbpf submodule release is v0.0.5 + + Fix USDT issue with multi-threaded applications + + Fixed the early return behavior of lookup_or_init + + Support for nic hardware offload + + Fixed and Enabled Travis CI + + A lot of tools change with added new options, etc. +- Update libbpf to 0.0.5 + + bpf_btf_get_next_id() API to iterate over system's BTF objects + + libbpf_set_print() now returns previously set print callback + + libbpf versioning, build, and packaging improvements + + convenience helpers for working with BTF types + + experimental BPF CO-RE relocation support + + various AF_XDP fixes and enhancements + + BTF-defined maps + + tracing attachment APIs and bpf_link abstraction + + perf buffer API + + BTF-to-C conversion API + + btf__parse_elf API for loading .BTF from ELF files + + libbpf_num_possible_cpus() added + + passing through prog_flags through bpf_object__open + + new attach types detection added +- Use version for REVISION instead of libversion + +--- Old: v0.0.3.tar.gz v0.10.0.tar.gz New: v0.0.5.tar.gz v0.11.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.1tQhwQ/_old 2019-10-17 12:23:12.479034001 +0200 +++ /var/tmp/diff_new_pack.1tQhwQ/_new 2019-10-17 12:23:12.479034001 +0200 @@ -16,7 +16,6 @@ # -%define libversion 0.10.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} @@ -27,10 +26,10 @@ %{!?with_lua: %global with_lua 0} %endif -%define libbpf_version 0.0.3 +%define libbpf_version 0.0.5 Name: bcc -Version:0.10.0 +Version:0.11.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -173,8 +172,8 @@ pushd build CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" cmake \ -DPYTHON_CMD=python3 \ - -DREVISION_LAST=%{libversion} \ - -DREVISION=%{libversion} \ + -DREVISION_LAST=%{version} \ + -DREVISION=%{version} \ -DCMAKE_INSTALL_PREFIX=/usr \ %if 0%{?suse_version} > 1320 -DENABLE_LLVM_SHARED=1 \ ++ v0.0.3.tar.gz -> v0.0.5.tar.gz ++ 9438 lines of diff (skipped) ++ v0.0.3.tar.gz -> v0.11.0.tar.gz ++ 154450 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-06-04 12:15:08 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.5148 (New) Package is "bcc" Tue Jun 4 12:15:08 2019 rev:29 rq:707428 version:0.10.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-04-23 14:39:06.105580284 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.5148/bcc.changes2019-06-04 12:15:13.627765043 +0200 @@ -1,0 +2,20 @@ +Tue Jun 4 08:25:44 UTC 2019 - Gary Ching-Pang Lin + +- Update to 0.10.0 + + Support for kernel up to 5.1 + + corresponding libbpf submodule release is v0.0.3 + + support for reading kernel headers from /proc + + libbpf.{a,so} renamed to libcc_bpf.{a,so} + + new common options for some tools + + new tool: drsnoop + + s390 USDT support +- Update libbpf to 0.0.3 + + Also add the source url of libbpf +- Drop upstreamed patches + + 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch + + 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch + + 0001-tools-don-t-mix-print-end-with-printb.patch +- Drop bcc-libbpf0 since upstream dropped the so file +- Enable SMP build flags since we don't need static clang anymore + +--- Old: 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch 0001-tools-don-t-mix-print-end-with-printb.patch libbpf-5beb8a2ebffd.tar.gz v0.9.0.tar.gz New: v0.0.3.tar.gz v0.10.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.7vU5RO/_old 2019-06-04 12:15:15.339764483 +0200 +++ /var/tmp/diff_new_pack.7vU5RO/_new 2019-06-04 12:15:15.375764471 +0200 @@ -16,7 +16,7 @@ # -%define libversion 0.9.0 +%define libversion 0.10.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} @@ -27,18 +27,17 @@ %{!?with_lua: %global with_lua 0} %endif +%define libbpf_version 0.0.3 + Name: bcc -Version:0.9.0 +Version:0.10.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/v%{version}.tar.gz -Source1:libbpf-5beb8a2ebffd.tar.gz -Patch1: 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch -Patch2: 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch -Patch3: 0001-tools-don-t-mix-print-end-with-printb.patch +Source1: https://github.com/libbpf/libbpf/archive/v%{libbpf_version}.tar.gz ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -48,8 +47,7 @@ BuildRequires: llvm-clang-devel >= 3.7.0 BuildRequires: llvm-devel >= 3.7.0 %if 0%{?suse_version} > 1320 -# bsc#1065593 Some static clang libraries are needed -BuildRequires: clang-devel-static +BuildRequires: clang-devel BuildRequires: llvm-gold %if %{with_lua} BuildRequires: lua51-luajit-devel @@ -79,13 +77,6 @@ %description -n libbcc0 Shared Library from the BPF Compiler Collection. -%package -n libbpf0 -Summary:Standalone eBPF library -Group: System/Libraries - -%description -n libbpf0 -A standalone library to load eBPF (Extended Berkeley Packet Filter) programs. - %package devel Summary:Header files for the BPF Compiler Collection Group: Development/Languages/C and C++ @@ -159,11 +150,8 @@ %prep %setup -D -n %{name}-%{version} pushd src/cc/libbpf -tar xf %{SOURCE1} +tar xf %{SOURCE1} --strip 1 popd -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %build # Prevent the cpp examples from compilation and installation @@ -199,9 +187,7 @@ -DENABLE_USDT=OFF \ %endif .. -# Remove %{?_smp_mflags} since linking static libraries consumes lots of RAM. -# Don't add it back unless we can get rid of clang4-devel-static -make VERBOSE=1 +make %{?_smp_mflags} VERBOSE=1 popd # Fix up #!-lines. @@ -234,13 +220,9 @@ %postun -n libbcc0 -p /sbin/ldconfig -%post -n libbpf0 -p /sbin/ldconfig - -%postun -n libbpf0 -p /sbin/ldconfig - %files -n bcc-devel %{_libdir}/libbcc.so -%{_libdir}/libbpf.so +%{_libdir}/libbcc_bpf.so %dir %{_includedir}/bcc/ %{_includedir}/bcc/* %{_libdir}/pkgconfig/libbcc.pc @@ -248,10 +230,7 @@ %files -n libbcc0 %license LICENSE.txt %{_libdir}/libbcc.so.* - -%files -n libbpf0 -%license LICENSE.txt -%{_libdir}/libbpf.so.* +%{_libdir}/libbcc_bpf.so.* %files -n python2-bcc %{python_sitelib}/bcc* ++ v0.9.0.tar.gz -> v0.0.3.tar.gz ++ 150539 lines of diff (skipped) ++ v0.9.0.tar.gz -> v0
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-04-23 14:39:03 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.5536 (New) Package is "bcc" Tue Apr 23 14:39:03 2019 rev:28 rq:697025 version:0.9.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-03-26 15:42:29.192241730 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.5536/bcc.changes2019-04-23 14:39:06.105580284 +0200 @@ -1,0 +2,8 @@ +Tue Apr 23 03:44:05 UTC 2019 - Gary Ching-Pang Lin + +- Add upstream patches to improve python3 compatibility + + 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch + + 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch + + 0001-tools-don-t-mix-print-end-with-printb.patch + +--- New: 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch 0001-tools-don-t-mix-print-end-with-printb.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.jyQBVw/_old 2019-04-23 14:39:06.665580572 +0200 +++ /var/tmp/diff_new_pack.jyQBVw/_new 2019-04-23 14:39:06.665580572 +0200 @@ -36,6 +36,9 @@ Url:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Source1:libbpf-5beb8a2ebffd.tar.gz +Patch1: 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch +Patch2: 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch +Patch3: 0001-tools-don-t-mix-print-end-with-printb.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -158,6 +161,9 @@ pushd src/cc/libbpf tar xf %{SOURCE1} popd +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build # Prevent the cpp examples from compilation and installation ++ 0001-Convert-bytes-to-string-for-re-in-get_tracepoints.patch ++ >From d2a4626dacc33d3dca9a7e6ea2ef4bdaa6ef3c74 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 17 Apr 2019 15:23:16 +0800 Subject: [PATCH] Convert bytes to string for re in get_tracepoints() When executing funccount with python3, the following error showed. # python3 funccount.py -D 't:block:*' Traceback (most recent call last): File "funccount.py", line 299, in Tool().run() File "funccount.py", line 261, in run self.probe.load() File "funccount.py", line 191, in load bpf_text += self._generate_functions(trace_count_text) File "funccount.py", line 143, in _generate_functions tracepoints = BPF.get_tracepoints(self.pattern) File "/usr/lib/python3.7/site-packages/bcc/__init__.py", line 772, in get_tracepoints if re.match(tp_re, tp): File "/usr/lib64/python3.7/re.py", line 173, in match return _compile(pattern, flags).match(string) TypeError: cannot use a bytes pattern on a string-like object This commit convert 'tp_re' from bytes to string to avoid the crash. Signed-off-by: Gary Lin --- src/python/bcc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/bcc/__init__.py b/src/python/bcc/__init__.py index 6f114de8..bff5f282 100644 --- a/src/python/bcc/__init__.py +++ b/src/python/bcc/__init__.py @@ -769,7 +769,7 @@ class BPF(object): evt_dir = os.path.join(cat_dir, event) if os.path.isdir(evt_dir): tp = ("%s:%s" % (category, event)) -if re.match(tp_re, tp): +if re.match(tp_re.decode(), tp): results.append(tp) return results -- 2.21.0 ++ 0001-fix-string-re-being-used-on-bytes-for-Python-3.patch ++ >From df481a4d724b407be2f30fc34a2a649c949f8171 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 20 Mar 2019 14:42:06 +0800 Subject: [PATCH] fix string re being used on bytes for Python 3 --- src/python/bcc/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/bcc/table.py b/src/python/bcc/table.py index d33d46eb..d32400e9 100644 --- a/src/python/bcc/table.py +++ b/src/python/bcc/table.py @@ -621,7 +621,7 @@ class PerfEventArray(ArrayBase): num_fields = lib.bpf_perf_event_fields(self.bpf.module, self._name) i = 0 while i < num_fields: -field = lib.bpf_perf_event_field(self.bpf.module, self._name, i) +field = lib.bpf_perf_event_field(self.bpf.module, self._name, i).decode() m = re.match(r"(.*)#(.*)", field) field_name = m.group(1) field_type = m.group(2) -- 2.21.0 ++ 0001-tools-don-t-mix-print-end-with-printb.patch ++ >From 6c793317dac5866db2899e
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-03-26 15:40:48 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.25356 (New) Package is "bcc" Tue Mar 26 15:40:48 2019 rev:27 rq:683735 version:0.9.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-03-07 10:51:17.117839745 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.25356/bcc.changes 2019-03-26 15:42:29.192241730 +0100 @@ -1,0 +2,10 @@ +Mon Mar 11 08:39:36 UTC 2019 - Gary Ching-Pang Lin + +- Update to 0.9.0 +- Add libbpf-5beb8a2ebffd.tar.gz since libbpf became a submodule + of bcc +- Drop bcc-bsc1080085-import-readline-from-lib.patch + + Upstream provide an additional argutment for the shared +readline + +--- Old: bcc-bsc1080085-import-readline-from-lib.patch v0.8.0.tar.gz New: libbpf-5beb8a2ebffd.tar.gz v0.9.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.BGqu8U/_old 2019-03-26 15:42:30.028241252 +0100 +++ /var/tmp/diff_new_pack.BGqu8U/_new 2019-03-26 15:42:30.032241250 +0100 @@ -16,7 +16,7 @@ # -%define libversion 0.8.0 +%define libversion 0.9.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} @@ -28,14 +28,14 @@ %endif Name: bcc -Version:0.8.0 +Version:0.9.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/v%{version}.tar.gz -Patch1: %{name}-bsc1080085-import-readline-from-lib.patch +Source1:libbpf-5beb8a2ebffd.tar.gz ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -155,7 +155,9 @@ %prep %setup -D -n %{name}-%{version} -%patch1 -p1 +pushd src/cc/libbpf +tar xf %{SOURCE1} +popd %build # Prevent the cpp examples from compilation and installation ++ v0.8.0.tar.gz -> v0.9.0.tar.gz ++ 17238 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-03-07 10:50:58 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.28833 (New) Package is "bcc" Thu Mar 7 10:50:58 2019 rev:26 rq:682313 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2019-01-21 11:01:26.699190463 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new.28833/bcc.changes 2019-03-07 10:51:17.117839745 +0100 @@ -1,0 +2,5 @@ +Thu Mar 7 04:53:20 UTC 2019 - Gary Ching-Pang Lin + +- Correct the library version + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.DHMWxZ/_old 2019-03-07 10:51:18.145839465 +0100 +++ /var/tmp/diff_new_pack.DHMWxZ/_new 2019-03-07 10:51:18.185839454 +0100 @@ -16,7 +16,7 @@ # -%define libversion 0.7.0 +%define libversion 0.8.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1}
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2019-01-21 10:59:33 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.28833 (New) Package is "bcc" Mon Jan 21 10:59:33 2019 rev:25 rq:666847 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-10-15 10:49:08.255025038 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.28833/bcc.changes 2019-01-21 11:01:26.699190463 +0100 @@ -1,0 +2,23 @@ +Thu Jan 17 11:09:49 UTC 2019 - Jan Engelhardt + +- Remove unnecessary use of xargs. +- Remove idempotent %if..%endif guards. +- Update descriptions for grammar. + +--- +Tue Jan 15 09:54:23 UTC 2019 - Aleksa Sarai + +- Update to 0.8.0. +- Remove upstreamed patches, and un-needed ones. + - bcc-check_int128.patch + - bcc-python3.patch (replaced with sed pipeline) + - bcc-install-additional-headers.patch (bpftrace has fixes now) + +--- +Sun Nov 25 00:50:02 UTC 2018 - Aleksa Sarai + +- Switch to %license over %doc for licenses. +- Add upstream patch for bpftrace builds. boo#1117223 + + bsc-install-additional-headers.patch + +--- Old: bcc-check_int128.patch bcc-python3.patch v0.7.0.tar.gz New: v0.8.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.QBEETa/_old 2019-01-21 11:01:28.231188484 +0100 +++ /var/tmp/diff_new_pack.QBEETa/_new 2019-01-21 11:01:28.235188479 +0100 @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,16 +28,14 @@ %endif Name: bcc -Version:0.7.0 +Version:0.8.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/v%{version}.tar.gz -Patch1: %{name}-check_int128.patch -Patch2: %{name}-python3.patch -Patch3: %{name}-bsc1080085-import-readline-from-lib.patch +Patch1: %{name}-bsc1080085-import-readline-from-lib.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -68,33 +66,33 @@ %description BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and examples. It makes use -of eBPF (Extended Berkeley Packet Filters), a new feature that was first +of eBPF (Extended Berkeley Packet Filters), a feature that was first added to Linux 3.15. Much of what BCC uses requires Linux 4.1 and above. %package -n libbcc0 -Summary:Shared Library for BPF Compiler Collection +Summary:Shared library from the BPF Compiler Collection Group: System/Libraries %description -n libbcc0 -Shared Library for BPF Compiler Collection (BCC) +Shared Library from the BPF Compiler Collection. %package -n libbpf0 Summary:Standalone eBPF library Group: System/Libraries %description -n libbpf0 -A standalone library to load eBPF programs +A standalone library to load eBPF (Extended Berkeley Packet Filter) programs. %package devel -Summary:BPF Compiler Collection (BCC) (devel package) +Summary:Header files for the BPF Compiler Collection Group: Development/Languages/C and C++ Requires: libbcc0 = %{version} %description devel -Shared library and pkg-config for developing BCC programs +Headers and pkg-config build descriptions for developing BCC programs. %package -n python2-bcc -Summary:Python2 bindings for BPF Compiler Collection +Summary:Python2 bindings for the BPF Compiler Collection Group: Development/Languages/Python Requires: kernel >= 4.1.0 Requires: kernel-devel >= 4.1.0 @@ -103,33 +101,31 @@ Obsoletes: python-bcc < %{version} %description -n python2-bcc -Python bindings for BPF Compiler Collection (BCC) +Python 2.x bindings for the BPF Compiler Collection. %package -n python3-bcc -Summary:Python
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-10-15 10:49:04 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Mon Oct 15 10:49:04 2018 rev:24 rq:641354 version:0.7.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-06-20 15:34:42.518779500 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-10-15 10:49:08.255025038 +0200 @@ -1,0 +2,13 @@ +Thu Oct 11 10:03:50 UTC 2018 - Gary Ching-Pang Lin + +- Update to 0.7.0 +- Refresh bcc-python3.patch +- Drop upstreamed patches + + bcc-bpf_probe_read-fixes.patch + + bcc-fix-ext4slower.patch + + bcc-fix-tcpaccept.patch + + bcc-prevent-bpf_probe_read-MemberExpre-rewrite.patch +- Remove bcc-bsc1065593-llvm4-hack.patch and set ENABLE_LLVM_SHARED +- Remove COPYRIGHT.txt which was dropped by upstream + +--- Old: bcc-bpf_probe_read-fixes.patch bcc-bsc1065593-llvm4-hack.patch bcc-fix-ext4slower.patch bcc-fix-tcpaccept.patch bcc-prevent-bpf_probe_read-MemberExpre-rewrite.patch v0.6.0.tar.gz New: v0.7.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.qllBrR/_old 2018-10-15 10:49:09.027024214 +0200 +++ /var/tmp/diff_new_pack.qllBrR/_new 2018-10-15 10:49:09.027024214 +0200 @@ -16,7 +16,7 @@ # -%define libversion 0.6.0 +%define libversion 0.7.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} @@ -28,7 +28,7 @@ %endif Name: bcc -Version:0.6.0 +Version:0.7.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -36,13 +36,8 @@ Url:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz Patch1: %{name}-check_int128.patch -Patch2: %{name}-bsc1065593-llvm4-hack.patch -Patch3: %{name}-python3.patch -Patch4: %{name}-bsc1080085-import-readline-from-lib.patch -Patch5: %{name}-bpf_probe_read-fixes.patch -Patch6: %{name}-fix-ext4slower.patch -Patch7: %{name}-prevent-bpf_probe_read-MemberExpre-rewrite.patch -Patch8: %{name}-fix-tcpaccept.patch +Patch2: %{name}-python3.patch +Patch3: %{name}-bsc1080085-import-readline-from-lib.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -166,15 +161,8 @@ %prep %setup -D -n %{name}-%{version} %patch1 -p1 -%if 0%{?suse_version} > 1320 %patch2 -p1 -%endif %patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 %build # Prevent the cpp examples from compilation and installation @@ -199,6 +187,9 @@ -DREVISION_LAST=%{libversion} \ -DREVISION=%{libversion} \ -DCMAKE_INSTALL_PREFIX=/usr \ +%if 0%{?suse_version} > 1320 + -DENABLE_LLVM_SHARED=1 \ +%endif %if %{with_lua} -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ -DLUAJIT_LIBRARY=%{_libdir}/lib`pkg-config --variable=libname luajit`.so \ @@ -246,11 +237,11 @@ %{_libdir}/pkgconfig/libbcc.pc %files -n libbcc0 -%doc LICENSE.txt COPYRIGHT.txt +%doc LICENSE.txt %{_libdir}/libbcc.so.* %files -n libbpf0 -%doc LICENSE.txt COPYRIGHT.txt +%doc LICENSE.txt %{_libdir}/libbpf.so.* %files -n python2-bcc ++ bcc-python3.patch ++ 2878 lines (skipped) between /work/SRC/openSUSE:Factory/bcc/bcc-python3.patch and /work/SRC/openSUSE:Factory/.bcc.new/bcc-python3.patch ++ v0.6.0.tar.gz -> v0.7.0.tar.gz ++ 7172 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-06-20 15:34:38 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Wed Jun 20 15:34:38 2018 rev:23 rq:617884 version:0.6.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-04-10 10:54:53.780740933 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-06-20 15:34:42.518779500 +0200 @@ -1,0 +2,18 @@ +Tue Jun 19 09:45:55 UTC 2018 - g...@suse.com + +- Update to 0.6.0 +- Add upstream patches + + bcc-bpf_probe_read-fixes.patch + + bcc-fix-ext4slower.patch + + bcc-fix-tcpaccept.patch + + bcc-prevent-bpf_probe_read-MemberExpre-rewrite.patch +- Drop upstreamed patches + + bcc-fix-build-for-llvm-5.0.1.patch + + bcc-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch + + bcc-bsc1080085-backport-bytes-strings.patch + + bcc-bsc1080085-detect-slab-for-slabratetop.patch + + bcc-bsc1080085-fix-cachetop-py3-str.patch + + bcc-bsc1080085-fix-syscount-str.patch +- Refresh bcc-python3.patch + +--- Old: bcc-bsc1080085-backport-bytes-strings.patch bcc-bsc1080085-detect-slab-for-slabratetop.patch bcc-bsc1080085-fix-cachetop-py3-str.patch bcc-bsc1080085-fix-syscount-str.patch bcc-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch bcc-fix-build-for-llvm-5.0.1.patch v0.5.0.tar.gz New: bcc-bpf_probe_read-fixes.patch bcc-fix-ext4slower.patch bcc-fix-tcpaccept.patch bcc-prevent-bpf_probe_read-MemberExpre-rewrite.patch v0.6.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.DTm1qG/_old 2018-06-20 15:34:43.558741764 +0200 +++ /var/tmp/diff_new_pack.DTm1qG/_new 2018-06-20 15:34:43.562741620 +0200 @@ -16,7 +16,7 @@ # -%define libversion 0.5.0 +%define libversion 0.6.0 %if 0%{?is_opensuse} == 1 %ifarch %ix86 x86_64 %{!?with_lua: %global with_lua 1} @@ -28,7 +28,7 @@ %endif Name: bcc -Version:0.5.0 +Version:0.6.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 @@ -38,13 +38,11 @@ Patch1: %{name}-check_int128.patch Patch2: %{name}-bsc1065593-llvm4-hack.patch Patch3: %{name}-python3.patch -Patch4: %{name}-fix-build-for-llvm-5.0.1.patch -Patch5: %{name}-bsc1080085-backport-bytes-strings.patch -Patch6: %{name}-bsc1080085-fix-cachetop-py3-str.patch -Patch7: %{name}-bsc1080085-import-readline-from-lib.patch -Patch8: %{name}-bsc1080085-detect-slab-for-slabratetop.patch -Patch9: %{name}-bsc1080085-fix-syscount-str.patch -Patch10: %{name}-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch +Patch4: %{name}-bsc1080085-import-readline-from-lib.patch +Patch5: %{name}-bpf_probe_read-fixes.patch +Patch6: %{name}-fix-ext4slower.patch +Patch7: %{name}-prevent-bpf_probe_read-MemberExpre-rewrite.patch +Patch8: %{name}-fix-tcpaccept.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -177,8 +175,6 @@ %patch6 -p1 %patch7 -p1 %patch8 -p1 -%patch9 -p1 -%patch10 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-bpf_probe_read-fixes.patch ++ >From 37f7fef27967ad5a1025112db6ec593a60a2c902 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Thu, 14 Jun 2018 02:14:59 +0200 Subject: [PATCH 1/3] profile: remove unnecessary bpf_probe_read call (#1822) --- tools/profile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/profile.py b/tools/profile.py index 3040a48..ec5533f 100755 --- a/tools/profile.py +++ b/tools/profile.py @@ -153,9 +153,7 @@ int do_perf_event(struct bpf_perf_event_data *ctx) { if (key.kernel_stack_id >= 0) { // populate extras to fix the kernel stack -struct pt_regs regs = {}; -bpf_probe_read(®s, sizeof(regs), (void *)&ctx->regs); -u64 ip = PT_REGS_IP(®s); +u64 ip = PT_REGS_IP(&ctx->regs); u64 page_offset; // if ip isn't sane, leave key ips as zero for later checking -- 2.17.1 >From f86f7e842eb9d892b5b46fa92bf231823ce533e3 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Thu, 14 Jun 2018 02:20:03 +0200 Subject: [PATCH 2/3] Skip dereferences inside bpf_probe_reads calls (#1824) * Skip all dereferences inside bpf_probe_read calls If the user decides to rely on a manual call to bpf_probe_read, we don't try to rewrite its last argument. This is needed as the rewriter starts to recognize and rewrite more and more dereferences. * tools: fix dereferences following 1a765
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-04-10 10:54:43 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Tue Apr 10 10:54:43 2018 rev:22 rq:594823 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-04-02 22:49:45.368691075 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-04-10 10:54:53.780740933 +0200 @@ -1,0 +2,6 @@ +Fri Apr 6 08:52:10 UTC 2018 - m...@suse.com + +- Add bcc-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch + to fix build with LLVM6. + +--- New: bcc-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.oArSRT/_old 2018-04-10 10:54:55.504678669 +0200 +++ /var/tmp/diff_new_pack.oArSRT/_new 2018-04-10 10:54:55.504678669 +0200 @@ -44,6 +44,7 @@ Patch7: %{name}-bsc1080085-import-readline-from-lib.patch Patch8: %{name}-bsc1080085-detect-slab-for-slabratetop.patch Patch9: %{name}-bsc1080085-fix-syscount-str.patch +Patch10: %{name}-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -177,6 +178,7 @@ %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-fix-a-compilation-error-with-latest-llvm-clang-trunk.patch ++ >From c0d1694e28336cbe4a57f420dd33c5e3bfaa2df9 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Thu, 28 Dec 2017 13:34:06 -0800 Subject: [PATCH] fix a compilation error with latest llvm/clang trunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bcc build with latest llvm/clang trunk failed with the below error: .. [ 35%] Built target api-static /home/yhs/work/bcc/src/cc/frontends/clang/tp_frontend_action.cc: In member function ‘bool ebpf::TracepointTypeVisitor::Visit FunctionDecl(clang::FunctionDecl*)’: /home/yhs/work/bcc/src/cc/frontends/clang/tp_frontend_action.cc:163:60: error: no matching function for call to ‘clang::Qual Type::getAsString(clang::SplitQualType)’ auto type_name = QualType::getAsString(type.split()); ^ .. The error is caused by the below clang commit: commit fcc28fd8cc8139cf1e4763459447880768579d8e Author: Aaron Ballman Date: Thu Dec 21 21:42:42 2017 + Re-commit r321223, which adds a printing policy to the ASTDumper. .. - std::string getAsString() const { -return getAsString(split()); + static std::string getAsString(SplitQualType split, + const PrintingPolicy &Policy) { +return getAsString(split.Ty, split.Quals, Policy); } + static std::string getAsString(const Type *ty, Qualifiers qs, + const PrintingPolicy &Policy); - static std::string getAsString(SplitQualType split) { -return getAsString(split.Ty, split.Quals); - } - - static std::string getAsString(const Type *ty, Qualifiers qs); - + std::string getAsString() const; std::string getAsString(const PrintingPolicy &Policy) const; .. The signature of static function getAsString(), which is used in src/cc/frontends/clang/tp_frontend_action.cc, got changed, and this caused the compilation error. The patch chooses a different way to get type_name which works for llvm 4.0 to 6.0 (tested). Signed-off-by: Yonghong Song --- src/cc/frontends/clang/tp_frontend_action.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/frontends/clang/tp_frontend_action.cc b/src/cc/frontends/clang/tp_frontend_action.cc index b8818ba..3b46a62 100644 --- a/src/cc/frontends/clang/tp_frontend_action.cc +++ b/src/cc/frontends/clang/tp_frontend_action.cc @@ -160,7 +160,7 @@ bool TracepointTypeVisitor::VisitFunctionDecl(FunctionDecl *D) { auto type = arg->getType(); if (type->isPointerType() && type->getPointeeType()->isStructureOrClassType()) { -auto type_name = QualType::getAsString(type.split()); +auto type_name = type->getPointeeType().getAsString(); string tp_cat, tp_evt; if (_is_tracepoint_struct_type(type_name, tp_cat, tp_evt)) { string tp_struct = GenerateTracepointStruct( -- 2.13.6
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-04-02 22:49:39 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Mon Apr 2 22:49:39 2018 rev:21 rq:592979 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-03-20 22:01:17.155681902 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-04-02 22:49:45.368691075 +0200 @@ -1,0 +2,6 @@ +Tue Mar 27 08:08:37 UTC 2018 - g...@suse.com + +- Add bcc-bsc1080085-fix-syscount-str.patch to convert ausyscall + output to string (bsc#1080085) + +--- New: bcc-bsc1080085-fix-syscount-str.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.xf1uGJ/_old 2018-04-02 22:49:45.956669697 +0200 +++ /var/tmp/diff_new_pack.xf1uGJ/_new 2018-04-02 22:49:45.960669552 +0200 @@ -43,6 +43,7 @@ Patch6: %{name}-bsc1080085-fix-cachetop-py3-str.patch Patch7: %{name}-bsc1080085-import-readline-from-lib.patch Patch8: %{name}-bsc1080085-detect-slab-for-slabratetop.patch +Patch9: %{name}-bsc1080085-fix-syscount-str.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -175,6 +176,7 @@ %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-bsc1080085-fix-syscount-str.patch ++ >From 85db55338c0d3178903bc60a5b3b85a9bc24159b Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Tue, 27 Mar 2018 15:54:09 +0800 Subject: [PATCH] tools/syscount: convert ausyscall output to string In python3, subprocess.check_output() returns a byte array and it failed the following split(). Convert the output to string to avoid the error. Signed-off-by: Gary Lin --- tools/syscount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syscount.py b/tools/syscount.py index a20d777..1f31bef 100755 --- a/tools/syscount.py +++ b/tools/syscount.py @@ -362,7 +362,7 @@ try: # Skip the first line, which is a header. The rest of the lines are simply # SYSCALL_NUM\tSYSCALL_NAME pairs. out = subprocess.check_output('ausyscall --dump | tail -n +2', shell=True) -syscalls = dict(map(parse_syscall, out.strip().split('\n'))) +syscalls = dict(map(parse_syscall, out.decode().strip().split('\n'))) except Exception as e: if platform.machine() == "x86_64": pass -- 2.16.2
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-03-20 22:00:51 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Tue Mar 20 22:00:51 2018 rev:20 rq:588840 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-03-16 10:44:57.277004547 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-03-20 22:01:17.155681902 +0100 @@ -1,0 +2,7 @@ +Tue Mar 20 03:26:35 UTC 2018 - g...@suse.com + +- Only enable bcc-lua for openSUSE (bsc#1085810) +- Amend the spec file to enable bps only for Tumbleweed + (bsc#1085403) + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.phbePm/_old 2018-03-20 22:01:18.279641435 +0100 +++ /var/tmp/diff_new_pack.phbePm/_new 2018-03-20 22:01:18.283641291 +0100 @@ -17,10 +17,14 @@ %define libversion 0.5.0 -%ifarch ppc64 aarch64 ppc64le s390x +%if 0%{?is_opensuse} == 1 +%ifarch %ix86 x86_64 +%{!?with_lua: %global with_lua 1} +%else %{!?with_lua: %global with_lua 0} +%endif %else -%{!?with_lua: %global with_lua 1} +%{!?with_lua: %global with_lua 0} %endif Name: bcc @@ -177,6 +181,11 @@ # Those programs are statically linked and huge in binary size. sed -i "/add_subdirectory(cpp)/d" examples/CMakeLists.txt +# Remove the lua scripts if bcc-lua is disabled +%if %{with_lua} == 0 +sed -i "/add_subdirectory(lua)/d" examples/CMakeLists.txt +%endif + # Install bps to /usr/bin sed -i "s,share/bcc/introspection,bin," introspection/CMakeLists.txt @@ -207,6 +216,11 @@ pushd build make install DESTDIR=%{buildroot} +%if 0%{?suse_version} <= 1500 +# Remove bps due to the incomplete support in kernel (bsc#1085403) +rm -f %{buildroot}/%{_bindir}/bps +%endif + # For python2-bcc (should be removed in the future) cmake -DPYTHON_CMD=python2 .. pushd src/python/ @@ -261,7 +275,9 @@ %{_datadir}/bcc/tools/* %dir %{_datadir}/bcc/man/ %{_datadir}/bcc/man/* +%if 0%{?suse_version} > 1500 %{_bindir}/bps +%endif %files docs %doc README.md FAQ.txt
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-03-16 10:43:28 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Mar 16 10:43:28 2018 rev:19 rq:587423 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-02-23 15:29:28.807211822 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-03-16 10:44:57.277004547 +0100 @@ -1,0 +2,11 @@ +Thu Mar 15 04:34:20 UTC 2018 - g...@suse.com + +- Add bcc-bsc1080085-import-readline-from-lib.patch to read the + symbol "readline" from libreadline. (bsc#1080085) +- Add bcc-bsc1080085-detect-slab-for-slabratetop.patch to detect + the current memory allocator and include the correct header. + (bsc#1080085) +- Make bcc-tools require audit since syscount.py needs ausyscall + to get the syscall list. (bsc#1080085) + +--- New: bcc-bsc1080085-detect-slab-for-slabratetop.patch bcc-bsc1080085-import-readline-from-lib.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.ZWcAWe/_old 2018-03-16 10:44:58.148973149 +0100 +++ /var/tmp/diff_new_pack.ZWcAWe/_new 2018-03-16 10:44:58.152973005 +0100 @@ -37,6 +37,8 @@ Patch4: %{name}-fix-build-for-llvm-5.0.1.patch Patch5: %{name}-bsc1080085-backport-bytes-strings.patch Patch6: %{name}-bsc1080085-fix-cachetop-py3-str.patch +Patch7: %{name}-bsc1080085-import-readline-from-lib.patch +Patch8: %{name}-bsc1080085-detect-slab-for-slabratetop.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -140,7 +142,9 @@ %package tools Summary:Tracing tools of BPF Compiler Collection (BCC) +# ausyscall from audit is required by syscount.py Group: System/Monitoring +Requires: audit Requires: python3-bcc = %{version} Requires: python3-future @@ -165,6 +169,8 @@ %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-bsc1080085-detect-slab-for-slabratetop.patch ++ diff --git a/tools/slabratetop.py b/tools/slabratetop.py index 956508b..3aee05a 100755 --- a/tools/slabratetop.py +++ b/tools/slabratetop.py @@ -61,7 +61,11 @@ bpf_text = """ #include #include #include +#ifdef CONFIG_SLUB #include +#else +#include +#endif #define CACHE_NAME_SIZE 32 ++ bcc-bsc1080085-import-readline-from-lib.patch ++ diff --git a/tools/bashreadline.py b/tools/bashreadline.py index 111..8abbbdd 100755 --- a/tools/bashreadline.py +++ b/tools/bashreadline.py @@ -19,6 +19,7 @@ import ctypes as ct # load BPF program bpf_text = """ #include +#include struct str_t { u64 pid; @@ -28,10 +29,14 @@ struct str_t { BPF_PERF_OUTPUT(events); int printret(struct pt_regs *ctx) { +char comm[TASK_COMM_LEN]; struct str_t data = {}; u32 pid; if (!PT_REGS_RC(ctx)) return 0; +bpf_get_current_comm(&comm, sizeof(comm)); +if (comm[0] != 'b' || comm[1] != 'a' || comm[2] != 's' || comm[3] != 'h') +return 0; pid = bpf_get_current_pid_tgid(); data.pid = pid; bpf_probe_read(&data.str, sizeof(data.str), (void *)PT_REGS_RC(ctx)); @@ -49,7 +54,7 @@ class Data(ct.Structure): ] b = BPF(text=bpf_text) -b.attach_uretprobe(name="/bin/bash", sym="readline", fn_name="printret") +b.attach_uretprobe(name="readline", sym="readline", fn_name="printret") # header print("%-9s %-6s %s" % ("TIME", "PID", "COMMAND"))
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-02-23 15:29:26 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Feb 23 15:29:26 2018 rev:18 rq:578854 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-02-09 15:48:05.902201122 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-02-23 15:29:28.807211822 +0100 @@ -1,0 +2,7 @@ +Wed Feb 21 07:41:03 UTC 2018 - g...@suse.com + +- Add bcc-bsc1080085-backport-bytes-strings.patch and + bcc-bsc1080085-fix-cachetop-py3-str.patch to fix the python3 + compatibility issue (bsc#1080085) + +--- New: bcc-bsc1080085-backport-bytes-strings.patch bcc-bsc1080085-fix-cachetop-py3-str.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.3VUu9u/_old 2018-02-23 15:29:29.555184799 +0100 +++ /var/tmp/diff_new_pack.3VUu9u/_new 2018-02-23 15:29:29.559184654 +0100 @@ -35,6 +35,8 @@ Patch2: %{name}-bsc1065593-llvm4-hack.patch Patch3: %{name}-python3.patch Patch4: %{name}-fix-build-for-llvm-5.0.1.patch +Patch5: %{name}-bsc1080085-backport-bytes-strings.patch +Patch6: %{name}-bsc1080085-fix-cachetop-py3-str.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -161,6 +163,8 @@ %endif %patch3 -p1 %patch4 -p1 +%patch5 -p1 +%patch6 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-bsc1080085-backport-bytes-strings.patch ++ 2466 lines (skipped) ++ bcc-bsc1080085-fix-cachetop-py3-str.patch ++ >From fedd277132f7d28a1cc96ce37aa931a999c0025c Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Tue, 13 Feb 2018 18:02:42 +0800 Subject: [PATCH] cachetop: convert str to bytes Signed-off-by: Gary Lin --- tools/cachetop.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/cachetop.py b/tools/cachetop.py index 5afd3fa..16f45d6 100755 --- a/tools/cachetop.py +++ b/tools/cachetop.py @@ -18,12 +18,12 @@ from __future__ import division # from __future__ import unicode_literals from __future__ import print_function +import curses from bcc import BPF from collections import defaultdict from time import strftime import argparse -import curses import pwd import re import signal @@ -52,8 +52,8 @@ def signal_ignore(signal, frame): def get_meminfo(): result = {} -for line in open('/proc/meminfo'): -k = line.split(':', 3) +for line in open('/proc/meminfo', "rb"): +k = line.split(b':', 3) v = k[1].split() result[k[0]] = int(v[0]) return result @@ -88,16 +88,16 @@ def get_processes_stats( whits = 0 for k, v in count.items(): -if re.match('mark_page_accessed', bpf.ksym(k)) is not None: +if re.match(b'mark_page_accessed', bpf.ksym(k)) is not None: mpa = max(0, v) -if re.match('mark_buffer_dirty', bpf.ksym(k)) is not None: +if re.match(b'mark_buffer_dirty', bpf.ksym(k)) is not None: mbd = max(0, v) -if re.match('add_to_page_cache_lru', bpf.ksym(k)) is not None: +if re.match(b'add_to_page_cache_lru', bpf.ksym(k)) is not None: apcl = max(0, v) -if re.match('account_page_dirtied', bpf.ksym(k)) is not None: +if re.match(b'account_page_dirtied', bpf.ksym(k)) is not None: apd = max(0, v) # access = total cache access incl. reads(mpa) and writes(mbd) @@ -195,8 +195,8 @@ def handle_loop(stdscr, args): # Get memory info mem = get_meminfo() -cached = int(mem["Cached"]) / 1024 -buff = int(mem["Buffers"]) / 1024 +cached = int(mem[b"Cached"]) / 1024 +buff = int(mem[b"Buffers"]) / 1024 process_stats = get_processes_stats( b, -- 2.16.1
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-02-09 15:48:05 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Feb 9 15:48:05 2018 rev:17 rq:574060 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2018-01-20 11:27:50.397208880 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-02-09 15:48:05.902201122 +0100 @@ -1,0 +2,6 @@ +Thu Feb 8 04:43:53 UTC 2018 - g...@suse.com + +- Update bcc-python3.patch to make python3 default for all the + python scripts (bsc#1079961) + +--- Other differences: -- ++ bcc-python3.patch ++ 2280 lines (skipped) between /work/SRC/openSUSE:Factory/bcc/bcc-python3.patch and /work/SRC/openSUSE:Factory/.bcc.new/bcc-python3.patch
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2018-01-20 11:27:49 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Sat Jan 20 11:27:49 2018 rev:16 rq:567626 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-12-21 11:29:21.567502912 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2018-01-20 11:27:50.397208880 +0100 @@ -1,0 +2,6 @@ +Fri Jan 19 09:58:59 UTC 2018 - g...@suse.com + +- Add bcc-fix-build-for-llvm-5.0.1.patch to fix the compilation + error against llvm-5.0.1 + +--- New: bcc-fix-build-for-llvm-5.0.1.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.ssBPQ0/_old 2018-01-20 11:27:51.297166791 +0100 +++ /var/tmp/diff_new_pack.ssBPQ0/_new 2018-01-20 11:27:51.301166604 +0100 @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,6 +34,7 @@ Patch1: %{name}-check_int128.patch Patch2: %{name}-bsc1065593-llvm4-hack.patch Patch3: %{name}-python3.patch +Patch4: %{name}-fix-build-for-llvm-5.0.1.patch ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -159,6 +160,7 @@ %patch2 -p1 %endif %patch3 -p1 +%patch4 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-fix-build-for-llvm-5.0.1.patch ++ >From bd7fa55bb39b8978dafd0b299e35616061e0a368 Mon Sep 17 00:00:00 2001 From: Yonghong Song Date: Wed, 27 Dec 2017 22:22:43 -0800 Subject: [PATCH] fix build issue for llvm 5.0.1 Fix issue #1502. A few cmake version checking greater than 5 includes 5.0.1 which results in compilation failure. Change version checking to explicitly equal to or greater than version 6. Signed-off-by: Yonghong Song --- cmake/clang_libs.cmake | 2 +- src/cc/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/clang_libs.cmake b/cmake/clang_libs.cmake index cd7f189..cf1b10f 100644 --- a/cmake/clang_libs.cmake +++ b/cmake/clang_libs.cmake @@ -8,7 +8,7 @@ list(FIND LLVM_AVAILABLE_LIBS "LLVMCoroutines" _llvm_coroutines) if (${_llvm_coroutines} GREATER -1) list(APPEND llvm_raw_libs coroutines) endif() -if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "5") +if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6) list(APPEND llvm_raw_libs bpfasmparser) list(APPEND llvm_raw_libs bpfdisassembler) endif() diff --git a/src/cc/CMakeLists.txt b/src/cc/CMakeLists.txt index 1a52782..3f6855c 100644 --- a/src/cc/CMakeLists.txt +++ b/src/cc/CMakeLists.txt @@ -29,7 +29,7 @@ set_target_properties(bpf-shared PROPERTIES VERSION ${REVISION_LAST} SOVERSION 0 set_target_properties(bpf-shared PROPERTIES OUTPUT_NAME bpf) set(bcc_common_sources bpf_common.cc bpf_module.cc exported_files.cc) -if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "5") +if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6) set(bcc_common_sources ${bcc_common_sources} bcc_debug.cc) endif() -- 2.15.1
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-12-21 11:29:16 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Thu Dec 21 11:29:16 2017 rev:15 rq:558736 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-12-15 14:07:25.610703437 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-12-21 11:29:21.567502912 +0100 @@ -1,0 +2,8 @@ +Tue Dec 19 14:00:05 UTC 2017 - dims...@opensuse.org + +- Replace clang4-devel-static BuildRequires with + clang-devel-static: use the unversioned one, folling the llvm + meta package version (like all the other llvm/clang packages in + the build chain). + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.cL6bmo/_old 2017-12-21 11:29:22.207471708 +0100 +++ /var/tmp/diff_new_pack.cL6bmo/_new 2017-12-21 11:29:22.207471708 +0100 @@ -44,7 +44,7 @@ BuildRequires: llvm-devel >= 3.7.0 %if 0%{?suse_version} > 1320 # bsc#1065593 Some static clang libraries are needed -BuildRequires: clang4-devel-static +BuildRequires: clang-devel-static BuildRequires: llvm-gold %if %{with_lua} BuildRequires: lua51-luajit-devel
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-12-15 14:06:29 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Dec 15 14:06:29 2017 rev:14 rq:557248 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-12-08 13:00:05.507826261 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-12-15 14:07:25.610703437 +0100 @@ -1,0 +2,6 @@ +Fri Dec 15 04:07:09 UTC 2017 - g...@suse.com + +- Request at least 10GB disk since the clang4-devel-static needs + more than 3GB and sometimes caused build fail (FATE#37) + +--- Other differences: -- ++ _constraints ++ --- /var/tmp/diff_new_pack.1sYNM4/_old 2017-12-15 14:07:26.450662888 +0100 +++ /var/tmp/diff_new_pack.1sYNM4/_new 2017-12-15 14:07:26.450662888 +0100 @@ -4,6 +4,9 @@ 2048 + + 10 +
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-12-08 13:00:04 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Dec 8 13:00:04 2017 rev:13 rq:554909 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-12-04 12:16:39.183987102 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-12-08 13:00:05.507826261 +0100 @@ -1,0 +2,6 @@ +Thu Dec 7 04:03:23 UTC 2017 - g...@suse.com + +- Request at least 4G RAM for the s390x build + (FATE#37, bsc#1070362) + +--- Other differences: -- ++ _constraints ++ --- /var/tmp/diff_new_pack.OAWCru/_old 2017-12-08 13:00:07.135767467 +0100 +++ /var/tmp/diff_new_pack.OAWCru/_new 2017-12-08 13:00:07.135767467 +0100 @@ -5,4 +5,14 @@ 2048 + + + s390x + + + +4096 + + +
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-12-04 12:16:34 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Mon Dec 4 12:16:34 2017 rev:12 rq:547897 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-12-03 10:12:56.496035423 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-12-04 12:16:39.183987102 +0100 @@ -1,0 +2,8 @@ +Mon Dec 4 03:34:52 UTC 2017 - g...@suse.com + +- Tweak the installation path of bps directly instead of installing + it manually. For those architectures without luajit, %{_bindir} + wasn't created and it failed the previous install command. + (FATE#37, bsc#1070362) + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.nshvo9/_old 2017-12-04 12:16:39.887961543 +0100 +++ /var/tmp/diff_new_pack.nshvo9/_new 2017-12-04 12:16:39.887961543 +0100 @@ -165,6 +165,9 @@ # Those programs are statically linked and huge in binary size. sed -i "/add_subdirectory(cpp)/d" examples/CMakeLists.txt +# Install bps to /usr/bin +sed -i "s,share/bcc/introspection,bin," introspection/CMakeLists.txt + export LD_LIBRARY_PATH="%{_builddir}/usr/lib64" export PATH="%{_builddir}/usr/bin":$PATH @@ -191,8 +194,6 @@ %install pushd build make install DESTDIR=%{buildroot} -install -m 755 %{buildroot}/%{_datadir}/bcc/introspection/bps %{buildroot}/%{_bindir}/bps -rm %{buildroot}/%{_datadir}/bcc/introspection/bps # For python2-bcc (should be removed in the future) cmake -DPYTHON_CMD=python2 ..
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-12-03 10:12:53 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Sun Dec 3 10:12:53 2017 rev:11 rq:547041 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-11-27 22:18:12.751067222 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-12-03 10:12:56.496035423 +0100 @@ -1,0 +2,41 @@ +Fri Dec 1 07:07:57 UTC 2017 - g...@suse.com + +- Update to 0.5.0 (bsc#1070563) + + Explain possible reason of an error in scripts that rely on +/proc/kallsyms + + bpf: fix a couple of issues related to arm64 + + bpf: Add support for prog_name and map_name + + Add a few introspection helpers + + Introduce BPF Program Snapshot helper (bps) + + Trace external pointers through maps + + Merge BType, Map, and Probe Consumers + + Fix exception handling in python3 + + Add usdt support for ARM64 + + bpf: make test py_test_tools_smoke pass on arm64 + + Add soname to libbpf.so + + Fix Module display for unreadable Modules + + Use bpf_prog_load_flag in APIs + + Add flag to enable verifier log_level 2 + + bpf: use MCJIT explicitly for ExecutionEngine + + change frontend rewriter to better handle anonymous struct/union + + Move BCC debug options to an installed header file + + use user-provided log_level in bpf_prog_load + + Add utility for cc tests to read command outputs + + Fix 'test_libbcc' from failing due to symbol name mismatch + + Update perf event type and config checks + + libbpf: Support unbound raw socket creation + + force linking the whole api-static library into shared library + + man/bps: Add a man page for introspection/bps.c + + Do not keep Loader instances around + + python: make _decode_table_types aware of __int128 + + python: Avoid unnecessary pointer object creations +- Only exclude ppc and s390 build (FATE#37, bsc#1070362) +- Add _constraints to reserve 2GB memory for linking with + clang4-devel-static +- Rename armv7.patch as bcc-check_int128.patch to check if the + compiler support int128 or not +- Drop upstreamed patches: + + bcc-bsc1065593-switch-to-mcjit.patch + + bcc-add-soname-to-libbpf.patch + +--- Old: armv7.patch bcc-add-soname-to-libbpf.patch bcc-bsc1065593-switch-to-mcjit.patch v0.4.0.tar.gz New: _constraints bcc-check_int128.patch v0.5.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.EYPDj3/_old 2017-12-03 10:12:57.220009101 +0100 +++ /var/tmp/diff_new_pack.EYPDj3/_new 2017-12-03 10:12:57.220009101 +0100 @@ -16,27 +16,25 @@ # -%define libversion 0.4.0 -%ifarch ppc64 aarch64 ppc64le +%define libversion 0.5.0 +%ifarch ppc64 aarch64 ppc64le s390x %{!?with_lua: %global with_lua 0} %else %{!?with_lua: %global with_lua 1} %endif Name: bcc -Version:0.4.0 +Version:0.5.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/v%{version}.tar.gz -Patch1: armv7.patch +Patch1: %{name}-check_int128.patch Patch2: %{name}-bsc1065593-llvm4-hack.patch -Patch3: %{name}-bsc1065593-switch-to-mcjit.patch -Patch4: %{name}-add-soname-to-libbpf.patch -Patch5: %{name}-python3.patch -ExclusiveArch: armv7hl aarch64 x86_64 ppc64 ppc64le +Patch3: %{name}-python3.patch +ExcludeArch:ppc s390 BuildRequires: bison BuildRequires: cmake >= 2.8.7 BuildRequires: flex @@ -161,8 +159,6 @@ %patch2 -p1 %endif %patch3 -p1 -%patch4 -p1 -%patch5 -p1 %build # Prevent the cpp examples from compilation and installation @@ -183,7 +179,7 @@ -DLUAJIT_INCLUDE_DIR=`pkg-config --variable=includedir luajit` \ -DLUAJIT_LIBRARY=%{_libdir}/lib`pkg-config --variable=libname luajit`.so \ %endif -%ifarch aarch64 || %arm +%ifarch %arm || %ix86 || s390x -DENABLE_USDT=OFF \ %endif .. @@ -195,6 +191,8 @@ %install pushd build make install DESTDIR=%{buildroot} +install -m 755 %{buildroot}/%{_datadir}/bcc/introspection/bps %{buildroot}/%{_bindir}/bps +rm %{buildroot}/%{_datadir}/bcc/introspection/bps # For python2-bcc (should be removed in the future) cmake -DPYTHON_CMD=python2 .. @@ -250,6 +248,7 @@ %{_datadir}/bcc/tools/* %dir %{_datadir}/bcc/man/ %{_datadir}/bcc/man/* +%{_bindir}/bps %files docs %doc README.md FAQ.txt ++ _constraints ++ 2048 ++ bcc-bsc1065593-llvm4-hack.patch
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-11-27 22:18:11 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Mon Nov 27 22:18:11 2017 rev:10 rq:545803 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-11-18 00:20:55.315926169 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-11-27 22:18:12.751067222 +0100 @@ -1,0 +2,5 @@ +Fri Nov 24 09:26:51 UTC 2017 - manfre...@gmx.net + +- Add patch (bcc-python3.patch) to explicitly use "/usr/bin/python3" + +--- New: bcc-python3.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.ujIBD3/_old 2017-11-27 22:18:13.475040945 +0100 +++ /var/tmp/diff_new_pack.ujIBD3/_new 2017-11-27 22:18:13.479040800 +0100 @@ -35,6 +35,7 @@ Patch2: %{name}-bsc1065593-llvm4-hack.patch Patch3: %{name}-bsc1065593-switch-to-mcjit.patch Patch4: %{name}-add-soname-to-libbpf.patch +Patch5: %{name}-python3.patch ExclusiveArch: armv7hl aarch64 x86_64 ppc64 ppc64le BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -161,6 +162,7 @@ %endif %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build # Prevent the cpp examples from compilation and installation ++ bcc-python3.patch ++ 1029 lines (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-11-18 00:20:54 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Sat Nov 18 00:20:54 2017 rev:9 rq:542594 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-11-10 14:57:30.935821666 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-11-18 00:20:55.315926169 +0100 @@ -1,0 +2,6 @@ +Fri Nov 17 09:19:40 UTC 2017 - g...@suse.com + +- Use the python3 package by default +- Provide and obsolete python-bcc (it's python2-bcc now) + +--- Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.K90w9F/_old 2017-11-18 00:20:56.591879711 +0100 +++ /var/tmp/diff_new_pack.K90w9F/_new 2017-11-18 00:20:56.591879711 +0100 @@ -90,14 +90,16 @@ %description devel Shared library and pkg-config for developing BCC programs -%package -n python-bcc -Summary:Python bindings for BPF Compiler Collection +%package -n python2-bcc +Summary:Python2 bindings for BPF Compiler Collection Group: Development/Languages/Python Requires: kernel >= 4.1.0 Requires: kernel-devel >= 4.1.0 Requires: libbcc0 = %{version} +Provides: python-bcc = %{version} +Obsoletes: python-bcc < %{version} -%description -n python-bcc +%description -n python2-bcc Python bindings for BPF Compiler Collection (BCC) %package -n python3-bcc @@ -125,10 +127,10 @@ %package examples Summary:Examples for BPF Compiler Collection (BCC) Group: Development/Sources -Requires: python-bcc = %{version} -Requires: python-future -Recommends: python-pyroute2 -Recommends: python-netaddr +Requires: python3-bcc = %{version} +Requires: python3-future +Recommends: python3-pyroute2 +Recommends: python3-netaddr Recommends: netperf %description examples @@ -137,8 +139,8 @@ %package tools Summary:Tracing tools of BPF Compiler Collection (BCC) Group: System/Monitoring -Requires: python-bcc = %{version} -Requires: python-future +Requires: python3-bcc = %{version} +Requires: python3-future %description tools Python tracing scripts of BPF Compiler Collection (BCC) @@ -171,6 +173,7 @@ mkdir build pushd build CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS cmake \ + -DPYTHON_CMD=python3 \ -DREVISION_LAST=%{libversion} \ -DREVISION=%{libversion} \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -190,12 +193,14 @@ %install pushd build make install DESTDIR=%{buildroot} -# For python3-bcc -cmake -DPYTHON_CMD=python3 .. + +# For python2-bcc (should be removed in the future) +cmake -DPYTHON_CMD=python2 .. pushd src/python/ make %{?_smp_mflags} VERBOSE=1 make install DESTDIR=%{buildroot} popd + popd %post -n libbcc0 -p /sbin/ldconfig @@ -221,7 +226,7 @@ %doc LICENSE.txt COPYRIGHT.txt %{_libdir}/libbpf.so.* -%files -n python-bcc +%files -n python2-bcc %{python_sitelib}/bcc* %files -n python3-bcc
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-11-10 14:57:14 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Nov 10 14:57:14 2017 rev:8 rq:540143 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-08-18 15:06:44.158448318 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-11-10 14:57:30.935821666 +0100 @@ -1,0 +2,55 @@ +Thu Nov 9 06:56:39 UTC 2017 - g...@suse.com + +- Update to 0.4.0 + + Fix helper to access stack pointer for powerpc + + bpf: rename helper function bpf_get_stackid + + bpf: print out the src debug info to a temporary file + + attempt to compile with system bpf.h if default compile failed + + sync src/cc/compat/linux headers with latest net-next + + Fix segfault with enumerations + + Allow BCC to parse vDSO symbols + + libbpf: print error to error stream + + Avoid potential SEGFAULT when resolving Kernel symbols + + Fix 'tools/statsnoop' from failing to attach kprobes + + Update USDT argument constraint for powerpc and powerpc64 + + examples:dns_matching: make it work as DNS sniffer + + add debug option to dump asm insns embedded with source + + examples:dns_matching: helper function for adding cache entry + + Traces external pointers in parenthesized expressions + + examples:dns_matching: fixed loop break condition + + Fix bcc_resolve_global_addr on shared libraries + + BCC macro for the creation of LPM trie maps (#1359) + + bpf_probe_read*: src argument should be const void *. + + hardirqs, softirqs: Fix distribution mode units handling + + Add a generic utility to check any binary availability + + Fix 'test_debuginfo' from failing if a symbol has multiple +aliases + + nfsdist tool (#1347) + + annotate program tag + + add helpers to access program tag + + examples: fixed http_filter example + + nfsslower: trace slow NFS operations + + Update after lookup in map.increment for HASH types + + fix a bug introduced by previous lua-bcc build fix commit + + Better check for compiler standard support + + fix lua-bcc build issue with cmake try_compile + + Fix segfault on incomplete types + + Trace external pointers from helpers + + Allow the flags to be specified in remove_xdp() + + bcc-lua: --no-pie, not -no-pie + + solisten, tcpconnlat, tcpretrans: Remove unnecessary +bpf_probe_reads +- Add the new subpackage libbpf0 +- Add bcc-bsc1065593-llvm4-hack.patch to work around the llvm + libraries searching issue (bsc#1065593) + (Also add clang4-devel-static to BuildRequires) +- Add bcc-bsc1065593-switch-to-mcjit.patch to switch from OrcJIT + to MCJIT. OrcJIT actually doesn't work for bcc, and the bug was + covered until we start to use the unified LLVM shared library. + (bsc#1065593) +- Add bcc-add-soname-to-libbpf.patch to install the shared library + properly +- Update the group of packages +- Disable USDT for ARM and AArch64 since it's not ready. + +--- Old: bcc-v0.3.0+git1502955391.9de830a.tar.xz New: bcc-add-soname-to-libbpf.patch bcc-bsc1065593-llvm4-hack.patch bcc-bsc1065593-switch-to-mcjit.patch v0.4.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.IsIe2h/_old 2017-11-10 14:57:32.435767413 +0100 +++ /var/tmp/diff_new_pack.IsIe2h/_new 2017-11-10 14:57:32.435767413 +0100 @@ -16,7 +16,7 @@ # -%define libversion 0.3.0 +%define libversion 0.4.0 %ifarch ppc64 aarch64 ppc64le %{!?with_lua: %global with_lua 0} %else @@ -24,14 +24,17 @@ %endif Name: bcc -Version:0.3.0+git1502955391.9de830a +Version:0.4.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 -Group: Development/Languages +Group: Development/Tools/Other Url:https://github.com/iovisor/bcc -Source: %{name}-v%{version}.tar.xz -Patch2: armv7.patch +Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz +Patch1: armv7.patch +Patch2: %{name}-bsc1065593-llvm4-hack.patch +Patch3: %{name}-bsc1065593-switch-to-mcjit.patch +Patch4: %{name}-add-soname-to-libbpf.patch ExclusiveArch: armv7hl aarch64 x86_64 ppc64 ppc64le BuildRequires: bison BuildRequires: cmake >= 2.8.7 @@ -41,6 +44,8 @@ BuildRequires: llvm-clang-devel >= 3.7.0 BuildRequires: llvm-devel >= 3.7.0 %if 0%{?suse_version} > 1320 +# bsc#1065593 Some static clang libraries are needed +BuildRequires: clang4-devel-static BuildRequires: llvm-gold %if %{with_lua} BuildRequires: lua51-luajit-devel @@ -70,9 +75,16 @@
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-08-18 15:06:40 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Aug 18 15:06:40 2017 rev:7 rq:517503 version:0.3.0+git1502955391.9de830a Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-06-07 09:55:28.442253825 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-08-18 15:06:44.158448318 +0200 @@ -1,0 +2,43 @@ +Fri Aug 18 06:59:03 UTC 2017 - g...@suse.com + +- Update to 0.3.0+git1502955391.9de830a + + avoid large map memory allocation in userspace + + python - set attach_xdp's default flag value to 0 + + have uniform uprobe event names for python and C++ + + Remove extra S_MAXSTAT array allocation in some tools + + Omit include of ptrace.h for empty usdt contexts + + Add clang check for -nopie option + + Correct commit id for BPF_FUNC_get_socket_cookie + + tools/tcptracer: add timestamp option + + Since LUA_GLOBALSINDEX is obsolete from Lua 5.2, use +lua_getglobal function instead. + + better state default value handling + + add --state to offcputime + + tcptop: Filter out negative values in receive probe + + tcptop: Cleanup argument parsing + + Use unsigned conversion specifier for nlmsg_pid + + Fix wrong netlink port id check + + 1. Use more safe snprintf instead of sprintf; +2. Modify procfilename buffer length in bcc_procutils_language +function. + + permit multiple pids attaching to the same probe + + generate proper usdt code to prevent llvm meddling with +ctx->#fields + + MySQL tracing without USDT (#1239) + + Fix a clang memory leak + + Update bpf.h and virtual_bpf.h to 4.13-rc1 + + Fix trace.py for library filenames containing colons (#1252) + + cc: Add open_perf_event to the C/C++ API (#1232) + + memleak: expand allocator coverage (#1214) + + libbpf: fix build warning on setns (#1246) + + usdt: Use ProcMountNS + + proc: Enhance bcc_mapping_is_file_backed + + Fix bcc.lua build issue in Ubuntu 17.04 + + Added helpers for BPF_PERCPU_ARRAY (#1230) + + Add an option to strip leading zeros from histograms (#1226) + + gethostlatency was rounding to full ms + + Change clang frontend optimization level from 0 to 2 + + fix cc: error: unrecognized command line option -no-pie + + fix incorrect code generation in usdt + +--- Old: bcc-v0.3.0+git1496334311.6fa3681.tar.xz New: bcc-v0.3.0+git1502955391.9de830a.tar.xz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.3sa167/_old 2017-08-18 15:06:45.634240469 +0200 +++ /var/tmp/diff_new_pack.3sa167/_new 2017-08-18 15:06:45.634240469 +0200 @@ -24,7 +24,7 @@ %endif Name: bcc -Version:0.3.0+git1496334311.6fa3681 +Version:0.3.0+git1502955391.9de830a Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 ++ bcc-v0.3.0+git1496334311.6fa3681.tar.xz -> bcc-v0.3.0+git1502955391.9de830a.tar.xz ++ 5321 lines of diff (skipped)
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-06-07 09:55:27 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Wed Jun 7 09:55:27 2017 rev:6 rq:501238 version:0.3.0+git1496334311.6fa3681 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-03-12 20:05:04.992560381 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-06-07 09:55:28.442253825 +0200 @@ -1,0 +2,38 @@ +Mon Jun 5 03:56:51 UTC 2017 - g...@suse.com + +- Update to 0.3.0+git1496334311.6fa3681 + + Improve PerfEventArray clean up + + make libbpf standalone-ready + + Add support for generic XDP mode + + Add option to control bcc_elf_foreach_sym behavior + + Add bpf_get_first_key helper + + Enable recursive scanf support for char[] as string + + Fix computation of LUAJIT_INCLUDE_DIR + + cc: Work around verifier error when reading USDT probe arguments + + Disable non-static function calls + + Added the option(USINGISYSTEM) of Cmake for controling whether +using -isystem. (#1064) + + softirqs: Migrate to kernel tracepoints instead of kprobes +(#1091) + + lua/bpf: implemented packet direct access + + lua/bpf: support for NET_OFF for dissector + + KVM hypercall analysis example (#1082) + + cc: add support for prog table + + cc: add support for array table + + Add TableStorage class for wrapping bpf map tracking + + funcslower: Trace slow kernel or user function calls + + map.insert bcc helper to expose the BPF_NOEXIST flag (#1085) + + bcc container improvements (#1051) + + cc: define load_func and unload_func public + + Python 3 compatibility fixes around string handling (#986) + + Verify format specifiers in bpf_trace_printk in rewriter + + Add build option for installing C++ examples + + bpflist: Display processes with running BPF programs and maps + + python: Allow module=None when resolving kernel symbols + + mdflush: Add missing #include +- Enable AArch64 build (FATE#37) +- Remove remove-isystem.patch since it can be controlled by the + cmake option now. +- Add gcc-c++ to the BuildRequires and switch to gcc/g++ + +--- Old: bcc-v0.3.0.tar.xz remove-isystem.patch New: bcc-v0.3.0+git1496334311.6fa3681.tar.xz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.pgqV2e/_old 2017-06-07 09:55:29.058166787 +0200 +++ /var/tmp/diff_new_pack.pgqV2e/_new 2017-06-07 09:55:29.058166787 +0200 @@ -24,19 +24,19 @@ %endif Name: bcc -Version:0.3.0 +Version:0.3.0+git1496334311.6fa3681 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 Group: Development/Languages Url:https://github.com/iovisor/bcc Source: %{name}-v%{version}.tar.xz -Patch1: remove-isystem.patch Patch2: armv7.patch -ExclusiveArch: armv7hl x86_64 ppc64 ppc64le +ExclusiveArch: armv7hl aarch64 x86_64 ppc64 ppc64le BuildRequires: bison BuildRequires: cmake >= 2.8.7 BuildRequires: flex +BuildRequires: gcc-c++ BuildRequires: libelf-devel BuildRequires: llvm-clang-devel >= 3.7.0 BuildRequires: llvm-devel >= 3.7.0 @@ -141,7 +141,6 @@ %prep %setup -D -n %{name}-v%{version} -%patch1 -p1 %patch2 -p1 %build @@ -154,8 +153,6 @@ mkdir build pushd build CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS cmake \ - -DCMAKE_C_COMPILER=/usr/bin/clang \ - -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \ -DREVISION_LAST=%{libversion} \ -DREVISION=%{libversion} \ -DCMAKE_INSTALL_PREFIX=/usr \
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-03-12 20:05:02 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Sun Mar 12 20:05:02 2017 rev:5 rq:478085 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2017-03-03 17:55:02.428090760 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-03-12 20:05:04.992560381 +0100 @@ -1,0 +2,18 @@ +Fri Mar 10 02:20:39 UTC 2017 - g...@suse.com + +- Update to 0.3.0 + + Added s390x support. Needs 4.10 Kernel + + Restrict rewrite of unary operators to dereference operator + + cmake: Explicitly mark static libraries as such + + Fix bpf_dins_pkt rewrite in BinaryOperator + + cc: Symbol resolution with multiple executable regions per +module + + cc: Fix assertion for debug builds + + cc: Don't parse the same module multiple times for USDT probes + + add XDP return values to python interface + + python: handle null module in BPF.sym + + filetop: support specifying sort column via cmdline argument + + cc: Retry symbol resolution using perfmap + + cc: Handle nested functions correctly when resolving symbols + +--- Old: bcc-v0.2.0+git1488325605.4d0d430.tar.xz New: bcc-v0.3.0.tar.xz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.9e1EsI/_old 2017-03-12 20:05:05.948425124 +0100 +++ /var/tmp/diff_new_pack.9e1EsI/_new 2017-03-12 20:05:05.948425124 +0100 @@ -16,7 +16,7 @@ # -%define libversion 0.2.0 +%define libversion 0.3.0 %ifarch ppc64 aarch64 ppc64le %{!?with_lua: %global with_lua 0} %else @@ -24,7 +24,7 @@ %endif Name: bcc -Version:0.2.0+git1488325605.4d0d430 +Version:0.3.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 ++ bcc-v0.2.0+git1488325605.4d0d430.tar.xz -> bcc-v0.3.0.tar.xz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bcc-v0.2.0+git1488325605.4d0d430/.travis.yml new/bcc-v0.3.0/.travis.yml --- old/bcc-v0.2.0+git1488325605.4d0d430/.travis.yml1970-01-01 01:00:00.0 +0100 +++ new/bcc-v0.3.0/.travis.yml 2017-03-10 03:07:20.0 +0100 @@ -0,0 +1,6 @@ +language: generic +install: + - sudo apt-get install -y python-pip + - sudo pip install pep8 +script: + - find tools/ -type f -name "*.py" | xargs pep8 -r --show-source --ignore=E123,E125,E126,E127,E128,E302 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bcc-v0.2.0+git1488325605.4d0d430/debian/changelog new/bcc-v0.3.0/debian/changelog --- old/bcc-v0.2.0+git1488325605.4d0d430/debian/changelog 2017-03-01 00:46:45.0 +0100 +++ new/bcc-v0.3.0/debian/changelog 2017-03-10 03:07:20.0 +0100 @@ -1,3 +1,16 @@ +bcc (0.3.0-1) unstable; urgency=low + + * Many bugfixes + * Many tools converted to perf ring buffer + * New utilities in tools/ + * capable, cpuunclaimed, dbslower, dbstat, deadlock_detector, llcstat, + mountsnoop, runqlen, slabratetop, syscount, tcplife, tcptop, ttysnoop, + ucalls, uflow, ugc, uobjnew, ustat, uthreads + * New C++ API + * Support for kernel up to 4.10 + + -- Brenden Blanco Thu, 09 Mar 2017 19:08:08 + + bcc (0.2.0-1) unstable; urgency=low * Add many new utilities in tools/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bcc-v0.2.0+git1488325605.4d0d430/debian/rules new/bcc-v0.3.0/debian/rules --- old/bcc-v0.2.0+git1488325605.4d0d430/debian/rules 2017-03-01 00:46:45.0 +0100 +++ new/bcc-v0.3.0/debian/rules 2017-03-10 03:07:20.0 +0100 @@ -11,6 +11,10 @@ %: dh $@ --buildsystem=cmake --parallel +# tests cannot be run in parallel +override_dh_auto_test: + dh_auto_test -O--buildsystem=cmake -O--no-parallel + # FIXME: LLVM_DEFINITIONS is broken somehow in LLVM cmake upstream override_dh_auto_configure: dh_auto_configure -- -DREVISION_LAST=$(UPSTREAM_VERSION) -DREVISION=$(UPSTREAM_VERSION) -DLLVM_DEFINITIONS="-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bcc-v0.2.0+git1488325605.4d0d430/docs/tutorial_bcc_python_developer.md new/bcc-v0.3.0/docs/tutorial_bcc_python_developer.md --- old/bcc-v0.2.0+git1488325605.4d0d430/docs/tutorial_bcc_python_developer.md 2017-03-01 00:46:45.0 +0100 +++ new/bcc-v0.3.0/docs/tutorial_bcc_python_developer.md2017-03-10 03:07:20.0 +0100 @@ -96,7 +96,7 @@ 1. ``
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2017-03-03 17:55:01 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Fri Mar 3 17:55:01 2017 rev:4 rq:461872 version:0.2.0+git1488325605.4d0d430 Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2016-12-06 14:27:53.0 +0100 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2017-03-03 17:55:02.428090760 +0100 @@ -1,0 +2,56 @@ +Thu Mar 2 09:26:48 UTC 2017 - idon...@suse.com + +- Add remove-isystem.patch to unconditionally removing -isystem, + looks like the gcc check is broken. +- Add armv7.patch to disable __uint128_t usage which does not + exist on ARMv7. +- Always use clang as C compiler, note that the build system will + always use clang++ ad CXX compiler if it finds it. + +--- +Thu Mar 2 02:56:26 UTC 2017 - g...@suse.com + +- Update to 0.2.0+git1488325605.4d0d430 + + Fix long running test_debuginfo and python3 fix + + Make perf ring buffer size configurable + + docs: Update eBPF features list + + Improve matching of file-backed memory mappings + + Fix symbol resolution by name (SymbolCache.resolve_name) + + cc: Resolve symbols from external debuginfo + + cc: Correctly treat PIE files as shared objects for symbols + + Migrate to new symbols resolution API + + Simplify BCC symbol resolution API + + trace, argdist: Treat small USDT arguments correctly + + Support base + index * scale addressing for USDT arguments + + cc: Fix SEGV when there is no build-id section + + syscount: Summarize syscall counts and latencies + + u* tools: PHP support + + bcc: add support for lpm trie map type + + cc: Support for __data_loc tracepoint fields + + Fix python2/3 incompatible percpu helpers + + fix iteration over CPUs + + Fixes for LLVM 4.0 and python3 + + Update [virtual_]bpf.h to 4.10 + + add bpf_obj_pin/bpf_obj_get to pin/get bpf objects + + uobjnew: Attach uprobe only to the requested process + + uflow: Trace method execution flow + + ustat: Activity stats from high-level languages + + ugc: Monitor GC events in high-level languages + + ucalls: Summarize method calls with USDT + + Example of using USDT + + Add USDT support to C++ API + + Improve linear histogram limit, and improve error message + + add runqlen tool + + docs: Update eBPF features list + + Improve C++ API perf buffer polling + + add support for bpf map flags + + Fix bug of missing to install simple_tc.py + + Add support for aarch64 + + Avoid unexpected log message on BPF program load error + + Add lru_hash/lru_percpu_hash to python/lua + + bcc: add lru_hash and lru_percpu_hash map types +- Remove the clang workaround since llvm 3.9.1 supports gcc c++11 + abi tag. (bsc#935533) +- Enable PowerPC64 and PowerPC64le build + +--- Old: bcc-v0.2.0+git1480569532.5647de0.tar.xz New: armv7.patch bcc-v0.2.0+git1488325605.4d0d430.tar.xz remove-isystem.patch Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.mIHFVL/_old 2017-03-03 17:55:03.167986251 +0100 +++ /var/tmp/diff_new_pack.mIHFVL/_new 2017-03-03 17:55:03.167986251 +0100 @@ -1,7 +1,7 @@ # # spec file for package bcc # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,23 @@ %define libversion 0.2.0 +%ifarch ppc64 aarch64 ppc64le +%{!?with_lua: %global with_lua 0} +%else +%{!?with_lua: %global with_lua 1} +%endif Name: bcc -Version:0.2.0+git1480569532.5647de0 +Version:0.2.0+git1488325605.4d0d430 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 Group: Development/Languages Url:https://github.com/iovisor/bcc Source: %{name}-v%{version}.tar.xz -ExclusiveArch: x86_64 +Patch1: remove-isystem.patch +Patch2: armv7.patch +ExclusiveArch: armv7hl x86_64 ppc64 ppc64le BuildRequires: bison BuildRequires: cmake >= 2.8.7 BuildRequires: flex @@ -35,11 +42,15 @@ BuildRequires: llvm-devel >= 3.7.0 %if 0%{?suse_version} > 1320 BuildRequires: llvm-gold +%if %{with_lua} BuildRequires: lua51-luajit-devel +%endif %else BuildRequires: libstdc++-devel +%if %{with_lua} BuildRequires: luajit-devel %endif +%endif BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: python-setuptools @@ -87,6 +9
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2016-12-06 14:27:52 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2016-09-27 13:45:11.0 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2016-12-06 14:27:53.0 +0100 @@ -1,0 +2,82 @@ +Tue Dec 6 09:07:33 UTC 2016 - g...@suse.com + +- Move manpages back to /usr/share/bcc/man since trace.8 is + conflicted with the one from postfix. + +--- +Thu Dec 1 08:54:44 UTC 2016 - g...@suse.com + +- Update to 0.2.0+git1480569532.5647de0 + + profile: -p should match user PID + + tcplife: reorder logic to catch missed timestamps + + hello_perf_output: match the data type of pid + + Remove debug flag override in bcc_exception.h + + Use StatusTuple constructor in mkstatus_ + + Implement StatusTuple class instead of using std::tuple + + biotop.py: fix compiler error on newer kernels + + Determine kernel dirs at runtime (fix #743) + + Rename exception.h to bcc_exception.h + + tcplife.py: Catch passive closed by server, #788 + + Install exception.h and common.h + + Fixup test errors in clang, c api + + trace: Avoid passing -1 as the pid to USDT + + Fix Tracepoint example (#809) + + cc, python: Clean up BPF module and tables + + Fix warnings covered by -Wdelete-non-virtual-dtor + + Fix argument type for increment() in documentation (#794) + + trace: add pid/tid filtering, fix symbolizing, misc nits (#798) + + Expose destruction of SymbolCache in libbcc + + perf_reader: install perf_reader.h + + Use headers from BCC in installed files (#793) + + funccount: Bail early if there are no matching functions (#792) + + python: Grab all keys before zeroing + + funccount: Switch to BPF array instead of hash + + Update profile.py to use new perf support (#776) + + Example for using BPF perf event + + funccount: Do not prepopulate location cache + + python: Filter duplicate in get_kprobe_functions + + Python API for BPF perf event + + Add bpf_attach_perf_event in libbpf + + Add BPF_PROG_TYPE_PERF_EVENT to bpf_prog_type enum + + add tcplife (#773) + + add reset-trace (#766) + + funccount: Verify probe max limit (#771) + + python: Fix kprobe quota test breakage, add uprobes + + funccount: Generalize for uprobes, tracepoints, and USDT + + bcc: Make regex helpers publicly accessible + + stackcount: Style fixes for linter (pep8) + + fix profile.py page_offset_base breakage (#768) + + trace, argdist: -I switch for trace and miscellaneous fixes +(#761) + + cc: Support glob+offset format in USDT arguments (#753) + + Support filtering by process ID in the filesystem slower tools +(#756) + + trace: STRCMP helper function + + mysqld_slower: Fix breakage after USDT API change + + trace: Add %K and %U format specifiers (#742) + + Update opensnoop to filter by PID and TID (#739) + + funclatency: user functions support (#733) + + tplist: Print USDT locations and arguments (#734) + + src/lua: LuaJIT BPF compiler, examples, tests (#652) + + stackcount: Support uprobes, tracepoints, and USDT (#730) + + trace: Initialize USDT arguments to 0 before reading (#725) + + argdist, trace: Native tracepoint support (#724) + + argdist: Cumulative mode (-c) (#719) + + trace: Print USDT arg helpers in verbose mode (#723) + + argdist, trace: Support naked executable names in probes (#720) + + docs: Update eBPF features list by kernel version (#717) + + fixup the issue in which distributed_bridge example (#716) + + Fix bpf_common.cc include style (#715) + + Fix argdist, trace, tplist to use the libbcc USDT support (#698) + + [tcpconnect] filter traced connection based on destination ports + + Fix bpf log buffer for large bpf program: (#680) + + opensnoop: Introduce process name filtering +- Exclude the cpp examples from installation +- Remove the isystem path since we are using clang++ +- Install the manpages correctly +- Improve the spec file to search the luajit pathes and fix some + dependency issue in Leap 42.2 +- Remove "-DBCC_KERNEL_HAS_SOURCE_DIR=1" since bcc can detect the + kernel dir dynamically now. + +--- Old: v0.2.0.tar.gz New: bcc-v0.2.0+git1480569532.5647de0.tar.xz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.CfC5ca/_old 2016-12-06 14:27:54.0 +0100 +++ /var/tmp/diff_new_pack.CfC5ca/_new 2016-12-06 14:27:54.0 +0100 @@ -19,13 +19,13 @@ %define libversion 0.2.0 Name: bcc -Version:0.2
commit bcc for openSUSE:Factory
Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2016-09-27 13:45:09 Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new (New) Package is "bcc" Changes: --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2016-08-15 10:31:18.0 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new/bcc.changes 2016-09-27 13:45:11.0 +0200 @@ -1,0 +2,44 @@ +Mon Sep 26 08:11:02 UTC 2016 - g...@suse.com + +- Add llvm-gold to the BuildRequires since the package was split + from llvm since 3.8.1 + +--- +Fri Sep 9 04:41:41 UTC 2016 - g...@suse.com + +- Update to 0.2.0 + + examples: fix indentation in tracing/tcpv4connect + + fileslower/filetop: use de->d_name.name, add filtering + +--- +Fri Aug 26 03:51:48 UTC 2016 - g...@suse.com + +- Update to snapshot v0.1.8+git1472097662.4ebb7cf + + fix biosnoop after kernel change + + offcputime improvements: use less RAM, add PID/TID support + + Add perf_submit_skb + + Adjustments to the documentation + + fix build with 4.0 llvm trunk + + frontends/clang: Safety check for invalid opLoc in ProbeVisitor + + Tool to sniff data contents before encrypted with OpenSSL or +GnuTLS + + Add bpf_get_current_task() helper definition + + USDT Python API and example + + Lua Tools for BCC + + BPF: better format for `ksymaddr` + + table: Implement a StackWalker for StackTrace tables + + added percpu support in bcc + + Fix error handling when attaching {u,k}{,ret}probes + + Fix python3 incompatibilities + + Update headers with 4.5+ features + + Add v6 headers to proto.h + + Use pre-calculated function addresses in funccount + + Add name to address ksym helper + + Add a table.zero() function to bcc.TableBase + + Enforce limit of 1000 open [uk]probes +- Drop upstreamed bcc-kernel-header-search.patch +- Add bcc-docs to collect the documentation +- Add bcc-lua to process the lua scripts +- Add the license files to libbcc0 + +--- Old: bcc-kernel-header-search.patch v0.1.8.tar.gz New: v0.2.0.tar.gz Other differences: -- ++ bcc.spec ++ --- /var/tmp/diff_new_pack.BpjmEE/_old 2016-09-27 13:45:12.0 +0200 +++ /var/tmp/diff_new_pack.BpjmEE/_new 2016-09-27 13:45:12.0 +0200 @@ -16,23 +16,29 @@ # -%define libversion 0.1.8 +%define libversion 0.2.0 Name: bcc -Version:0.1.8 +Version:0.2.0 Release:0 Summary:BPF Compiler Collection (BCC) License:Apache-2.0 Group: Development/Languages Url:https://github.com/iovisor/bcc Source: https://github.com/iovisor/bcc/archive/v%{version}.tar.gz -Patch1: bcc-kernel-header-search.patch ExclusiveArch: x86_64 BuildRequires: bison BuildRequires: cmake >= 2.8.7 BuildRequires: flex +BuildRequires: libelf-devel BuildRequires: llvm-clang-devel >= 3.7.0 BuildRequires: llvm-devel >= 3.7.0 +%if 0%{?suse_version} > 1320 +BuildRequires: llvm-gold +BuildRequires: lua51-luajit-devel +%else +BuildRequires: luajit-devel +%endif BuildRequires: pkg-config BuildRequires: python-devel BuildRequires: python-setuptools @@ -80,6 +86,16 @@ %description -n python3-bcc Python3 bindings for BPF Compiler Collection (BCC) +%package lua +Summary:Lua interpreter for BPF Compiler Collection +Group: Development/Languages +Requires: kernel >= 4.1.0 +Requires: kernel-devel >= 4.1.0 +Requires: libbcc0 = %{version} + +%description lua +Lua interpreter for BPF Compiler Collection (BCC) + %package examples Summary:Examples for BPF Compiler Collection (BCC) Group: Development/Languages @@ -101,9 +117,16 @@ %description tools Python tracing scripts of BPF Compiler Collection (BCC) +%package docs +Summary:BPF Compiler Collection (BCC) documentation +Group: Development/Languages + +%description docs +The documentation of how to write programs with BPF Compiler Collection (BCC) + + %prep %setup -D -n %{name}-%{version} -%patch1 -p1 %build export LD_LIBRARY_PATH="%{_builddir}/usr/lib64" @@ -120,6 +143,10 @@ -DREVISION=%{libversion} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBCC_KERNEL_HAS_SOURCE_DIR=1 \ +%if 0%{?suse_version} > 1320 + -DLUAJIT_INCLUDE_DIR=/usr/include/luajit-5_1-2.0 \ +%endif + -DLUAJIT_LIBRARY=/usr/lib64/libluajit-5.1.so \ .. make %{?_smp_mflags} VERBOSE=1 popd @@ -146,6 +173,7 @@ %{_libdir}/pkgconfig/libbcc.pc %files -n libbcc0 +%doc LICENSE.txt COPYRIGHT.txt %{_li