mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
7af928b8a85d6d1bbdb5e9ee521495ad7e107313
With the current xsk_btf__read() we are seeing a slowdown on the first packet with timestamps. The theory is this is caused by the allocation for the cached hashmap entry. meta-time rx_ktime:870394156129518 time_now:870394156139039 diff:9521 ns meta-time rx_ktime:870396208293894 time_now:870396208295098 diff:1204 ns meta-time rx_ktime:870398256286553 time_now:870398256287772 diff:1219 ns Create a new API that can access struct members more directly via caching the xsk_btf_member offset + size in the C-code API user. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Practical BPF examples
This git repository contains a diverse set of practical BPF examples that solve (or demonstrate) a specific use-case using BPF.
It is meant to ease doing rapid prototyping and development, writing C-code BPF programs using libbpf. The goal is to make is easier for developers to get started coding.
Many developers struggle to get a working BPF build environment. The repo enviroment makes it easy to build/compile BPF programs by doing the necessary libbpf setup transparently and detect missing compile dependencies (via the (configure)[configure] script). It is a declared goal to make BPF programming more consumable by detecting and reporting issues (when possible).
Description
Languages
C
93.6%
Shell
4.7%
Makefile
1.6%