From f56d645a6196c3499896044f3a90282df8711b9ac2d9b4c3e10840331a297887 Mon Sep 17 00:00:00 2001 From: Shung-Hsi Yu Date: Wed, 12 Oct 2022 06:10:47 +0000 Subject: [PATCH] Accepting request 1007954 from home:dirkmueller:Factory - update to 1.0.1: * fix inadvertently changed struct bpf_object_open_opts memory layout; * fix btf.h header relying on struct enum64 type defined in kernel UAPI headers; * fix NULL pointer exception in API btf_dump__dump_type_data; * remove struct btf_map_def accidentally left in bpf_helpers.h header. * All deprecated APIs and features removed! * support for syscall-specific kprobe/kretprobe (SEC("ksyscall/") and SEC("kretsyscall/")); * support for sleepable uprobe BPF programs (SEC("uprobe.s")); * support for per-cgroup LSM BPF programs (SEC("lsm_cgroup")); * support for new BPF CO-RE relocation TYPE_MATCHES; * bpf_prog_load() and bpf_map_create() are now smarter about handling program and map name on old kernels (it will be ignored if kernel doesn't support names); * BTF_KIND_ENUM64 support; * increase tracing attachment (kprobe/uprobe/tracepoint) robustness by using tracefs or debugfs, whichever is mounted; * new APIs for converting BPF enums to their string representation: * libbpf_bpf_prog_type_str(); * libbpf_bpf_map_type_str(); * libbpf_bpf_link_type_str(); * libbpf_bpf_attach_type_str(); * bpf_program__set_autoattach() and bpf_program__autoattach() to allow opting out from auto-attaching of BPF program by BPF skeleton; * perf_buffer__buffer() API to give access to underlying per-CPU buffer for BPF ringbuf; * bpf_obj_get_opts() API for more flexible fetching of BPF kernel objects' information. - see https://github.com/libbpf/libbpf/releases/tag/v1.0.0 for detailed changelog OBS-URL: https://build.opensuse.org/request/show/1007954 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbpf?expand=0&rev=23 --- baselibs.conf | 2 +- libbpf-0.8.1.tar.gz | 3 --- libbpf-1.0.1.tar.gz | 3 +++ libbpf.changes | 31 +++++++++++++++++++++++++++++++ libbpf.spec | 4 ++-- 5 files changed, 37 insertions(+), 6 deletions(-) delete mode 100644 libbpf-0.8.1.tar.gz create mode 100644 libbpf-1.0.1.tar.gz diff --git a/baselibs.conf b/baselibs.conf index 16538cc..6d74034 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libbpf0 +libbpf1 diff --git a/libbpf-0.8.1.tar.gz b/libbpf-0.8.1.tar.gz deleted file mode 100644 index f6a9862..0000000 --- a/libbpf-0.8.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7bda8187efc619d1eb20a1ba5ab949dd68d40dd44945310c91ac0f915fa4a42b -size 942702 diff --git a/libbpf-1.0.1.tar.gz b/libbpf-1.0.1.tar.gz new file mode 100644 index 0000000..17f3529 --- /dev/null +++ b/libbpf-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d6afde67682c909e341bf194678a8969f17628705af25f900d5f68bd299cb03 +size 917269 diff --git a/libbpf.changes b/libbpf.changes index 8e5cbc6..2e82a78 100644 --- a/libbpf.changes +++ b/libbpf.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Tue Oct 4 17:22:08 UTC 2022 - Dirk Müller + +- update to 1.0.1: + * fix inadvertently changed struct bpf_object_open_opts memory layout; + * fix btf.h header relying on struct enum64 type defined in kernel UAPI headers; + * fix NULL pointer exception in API btf_dump__dump_type_data; + * remove struct btf_map_def accidentally left in bpf_helpers.h header. + * All deprecated APIs and features removed! + * support for syscall-specific kprobe/kretprobe + (SEC("ksyscall/") and SEC("kretsyscall/")); + * support for sleepable uprobe BPF programs (SEC("uprobe.s")); + * support for per-cgroup LSM BPF programs (SEC("lsm_cgroup")); + * support for new BPF CO-RE relocation TYPE_MATCHES; + * bpf_prog_load() and bpf_map_create() are now smarter about handling program + and map name on old kernels (it will be ignored if kernel doesn't support + names); + * BTF_KIND_ENUM64 support; + * increase tracing attachment (kprobe/uprobe/tracepoint) robustness by using + tracefs or debugfs, whichever is mounted; + * new APIs for converting BPF enums to their string representation: + * libbpf_bpf_prog_type_str(); + * libbpf_bpf_map_type_str(); + * libbpf_bpf_link_type_str(); + * libbpf_bpf_attach_type_str(); + * bpf_program__set_autoattach() and bpf_program__autoattach() to allow opting + out from auto-attaching of BPF program by BPF skeleton; + * perf_buffer__buffer() API to give access to underlying per-CPU buffer for BPF ringbuf; + * bpf_obj_get_opts() API for more flexible fetching of BPF kernel objects' information. +- see https://github.com/libbpf/libbpf/releases/tag/v1.0.0 for detailed changelog + ------------------------------------------------------------------- Wed Aug 3 13:55:13 UTC 2022 - Callum Farmer diff --git a/libbpf.spec b/libbpf.spec index 843513f..20685f0 100644 --- a/libbpf.spec +++ b/libbpf.spec @@ -16,10 +16,10 @@ # -%define sover_major 0 +%define sover_major 1 %define libname libbpf%{sover_major} Name: libbpf -Version: 0.8.1 +Version: 1.0.1 Release: 0 Summary: C library for managing eBPF programs and maps License: LGPL-2.1-only