[ANNOUNCEMENT] libbpf v1.6.0 release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Libbpf v1.6.0 was just released ([0]). See the summary of features
below, as well as the link ([1]) to a full set of commits that went
into the fresh release. If you find anything wrong with the release,
please let us know ASAP, thank you!

Thanks a lot to all the contributors for making libbpf a better,
mature, powerful, and flexible library at the heart of the BPF
ecosystem!


## User space-side features

- add more control over BPF object lifetime with new preparation step
(`bpf_object__prepare()` API);
- libbpf will report symbolic error code (e.g., "-EINVAL") in addition
to human-readable error description;
- `bpf_prog_stream_read()` API;
- BPF token support when attaching BPF trampoline-based BPF programs
in `bpf_program__set_attach_target()`;
- BPF token support for `BPF_BTF_GET_FD_BY_ID` command;
- support multi-uprobe session (`SEC("uprobe.session")`) BPF programs;
- support `unique_match` option for multi-kprobe attachment;
- support creating and destroying qdisk with `BPF_TC_QDISC` flag;
- `bpf_program__attach_cgroup_opts()` which enables more precise
cgroup-based attachment ordering;
- libbpf will automatically take advantage of memory-mappable kernel
BTF (`/sys/kernel/btf/vmlinux`), if supported;
- `emit_strings` option for BTF dumper API, improving string-like data printing;
- add BPF program's func and line info accessors
(`bpf_program__{func,line}_info[_cnt]()` APIs);
- BPF linker supports linking ELF object files coming from memory
buffer and referenced by FD, in addition to file path-based APIs;
- small improvements to BTF dedup to handle rare quirky corner cases
produces by some compilers;


## BPF-side features

- `likely()` and `unlikely()` convenience macros;
- `__arg_untrusted` annotation for BPF global subprog arguments;
- `bpf_stream_printk()` macro for working with BPF streams;
- `bpf_usdt_arg_size()` API;


## Bug fixes

As usual, a bunch of bug fixes were landed, see full commit log for details.


  [0] https://github.com/libbpf/libbpf/releases/tag/v1.6.0
  [1] Changelog: https://github.com/libbpf/libbpf/compare/v1.5.0...v1.6.0

-- Andrii




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux