libbpf-rs icon indicating copy to clipboard operation
libbpf-rs copied to clipboard

Minimal and opinionated eBPF tooling for the Rust ecosystem

Results 54 libbpf-rs issues
Sort by recently updated
recently updated
newest added

This makes sure that the type identifier contained in the array is constructed with a valid default. Since we were hardcoding `::default()` after the type identifier, it was not working...

We need to preserve the errno and set it back after the callback function is called. For more context, please see https://github.com/libbpf/libbpf/pull/536

This is a more principled fix to #163 than #168. It avoids non-determinism from the tempdir where the header files are stored, as well as differences from user home directories...

As part of the initiative to reach feature-parity with libbpf-1.0, this commit adds wrapper functions around: * bpf_program__set_log_level * bpf_program__log_level * bpf_program__autoload * bpf_program__unload Signed-off-by: Joanne Koong

Found some problems with >= libbpf-sys 0.6.0 and old kernels (in my case it was CentOS/RHEL 7). The problems were with internal maps (.rodata) generated (but not really used) by...

Is it intentional that structs like `WlistSkel` don't implement `Send` and `Sync`? Because they contain raw pointers, they're automatically marked as non-`Send`able and non-`Sync`hronized, but is it actually the case...

As a summary of the conversation in https://github.com/libbpf/libbpf-rs/pull/169, the approach we're going to go with is statically linking BPF object files, which will strip out DWARF info as a side-effect...

ring_buffer__poll in libbpf internally calls epoll_wait. Specifying a timeout of -1 to epoll_wait causes it to block indefinitely if no event transpires. We should support this functionality in libbpf-rs as...

A bpf program's fd can be useful to obtain relevant data such as memlock (like how it's done in bpftool). This change allows users to obtain the fd of a...

bpf_program__attach_uprobe_opts in libbpf: https://github.com/libbpf/libbpf/blob/master/src/libbpf.h#L603-L604