From 6eaf8b91e2de98299083ec48a4d97eb418e05ba2e51613e83c36d51af127c479 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 25 Nov 2023 10:06:07 +0000 Subject: [PATCH] - update to 1.3.0: * support for `netfilter` programs is added `SEC("netfilter")` is now available * API function `bpf_program__attach_netfilter()` is now available * support for `tcx` BPF programs is added: * the following new SEC definitions are now available: SEC("tc/egress"), SEC("tc/ingress"), SEC("tcx/egress"), SEC("tcx/ingress") * the following SEC definitions are now considered legacy: SEC("tc"), SEC("action"), SEC("classifier") * functions `bpf_prog_attach_opts()` and `bpf_prog_query_opts()` are extended to work with `tcx` programs, plus two new API functions are added: * the following new SEC definitions are now available: SEC("uprobe.multi"), SEC("uprobe.multi.s"), SEC("uretprobe.multi"), SEC("uretprobe.multi.s") * support for section `SEC("usdt.s")` is added for sleepable `usdt` programs; * support for Unix domain socket cgroup BPF programs is added the following new SEC definitions are now available: SEC("cgroup/connect_unix"),SEC("cgroup/sendmsg_unix"), SEC("cgroup/recvmsg_unix"), SEC("cgroup/getpeername_unix"), SEC("cgroup/getsockname_unix") * new `LIBBPF_OPTS_RESET()` utility macro; * new `bpf_object__unpin()` function to complement existing `bpf_object__pin()`; * new API functions for work with ring buffers * uprobe SEC matcher extended to allow golang symbols; * uprobe support for symbols versioning; OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libbpf?expand=0&rev=35 --- libbpf-1.2.2.tar.gz | 3 --- libbpf-1.3.0.tar.gz | 3 +++ libbpf.changes | 51 +++++++++++++++++++++++++++++++++++++++++++++ libbpf.spec | 2 +- 4 files changed, 55 insertions(+), 4 deletions(-) delete mode 100644 libbpf-1.2.2.tar.gz create mode 100644 libbpf-1.3.0.tar.gz diff --git a/libbpf-1.2.2.tar.gz b/libbpf-1.2.2.tar.gz deleted file mode 100644 index b58ca18..0000000 --- a/libbpf-1.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:32b0c41eabfbbe8e0c8aea784d7495387ff9171b5a338480a8fbaceb9da8d5e5 -size 1000104 diff --git a/libbpf-1.3.0.tar.gz b/libbpf-1.3.0.tar.gz new file mode 100644 index 0000000..96dbbc9 --- /dev/null +++ b/libbpf-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11db86acd627e468bc48b7258c1130aba41a12c4d364f78e184fd2f5a913d861 +size 999282 diff --git a/libbpf.changes b/libbpf.changes index 4fee1fc..5245083 100644 --- a/libbpf.changes +++ b/libbpf.changes @@ -1,3 +1,54 @@ +------------------------------------------------------------------- +Sat Nov 25 09:45:41 UTC 2023 - Dirk Müller + +- update to 1.3.0: + * support for `netfilter` programs is added + `SEC("netfilter")` is now available + * API function `bpf_program__attach_netfilter()` is now + available + * support for `tcx` BPF programs is added: + * the following new SEC definitions are now available: + SEC("tc/egress"), SEC("tc/ingress"), SEC("tcx/egress"), + SEC("tcx/ingress") + * the following SEC definitions are now considered legacy: + SEC("tc"), SEC("action"), SEC("classifier") + * functions `bpf_prog_attach_opts()` and + `bpf_prog_query_opts()` are extended to work with `tcx` + programs, plus two new API functions are added: + * the following new SEC definitions are now available: + SEC("uprobe.multi"), SEC("uprobe.multi.s"), + SEC("uretprobe.multi"), SEC("uretprobe.multi.s") + * support for section `SEC("usdt.s")` is added for sleepable + `usdt` programs; + * support for Unix domain socket cgroup BPF programs is added + the following new SEC definitions are now available: + SEC("cgroup/connect_unix"),SEC("cgroup/sendmsg_unix"), + SEC("cgroup/recvmsg_unix"), SEC("cgroup/getpeername_unix"), + SEC("cgroup/getsockname_unix") + * new `LIBBPF_OPTS_RESET()` utility macro; + * new `bpf_object__unpin()` function to complement existing + `bpf_object__pin()`; + * new API functions for work with ring buffers + * uprobe SEC matcher extended to allow golang symbols; + * uprobe support for symbols versioning; + * `bpf_map__set_value_size()` can now be used to resize memory + mapped region for memory mapped maps; + * `struct bpf_xdp_query_opts` extended with `xdp_zc_max_segs` + output field; + * basic BTF sanity check pass added to reject bogus BTF. + * fix for btf_dump__dump_type_data() when type contains + bitfields; + * fix for correct work of offsetof() and container_of() macro + with CO-RE; + * no longer attempt to load modules BTF when resolving CO-RE + relocations if CAP_SYS_ADMIN are absent; + * regex based function search for "kprobe.multi/" programs no + longer attempts to trace functions that cannot be traced; + * bpf_program__set_type() no longer resets sec_def if it is set + to a custom fallback SEC handler; + * fix for memory leak possible after + bpf_program__set_attach_target() call; + ------------------------------------------------------------------- Fri Jul 14 05:04:50 UTC 2023 - Shung-Hsi Yu diff --git a/libbpf.spec b/libbpf.spec index 9706ca7..1251305 100644 --- a/libbpf.spec +++ b/libbpf.spec @@ -19,7 +19,7 @@ %define sover_major 1 %define libname libbpf%{sover_major} Name: libbpf -Version: 1.2.2 +Version: 1.3.0 Release: 0 Summary: C library for managing eBPF programs and maps License: LGPL-2.1-only