Home
last modified time | relevance | path

Searched refs:libbpf (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.15/tools/lib/bpf/
H A DMakefile7 VERSION_SCRIPT := libbpf.map
69 LIB_TARGET = libbpf.a libbpf.so.$(LIBBPF_VERSION)
70 LIB_FILE = libbpf.a libbpf.so*
71 PC_FILE = libbpf.pc
106 BPF_IN_SHARED := $(SHARED_OBJDIR)libbpf-in.o
107 BPF_IN_STATIC := $(STATIC_OBJDIR)libbpf-in.o
158 $(OUTPUT)libbpf.so: $(OUTPUT)libbpf.so.$(LIBBPF_VERSION)
164 @ln -sf $(@F) $(OUTPUT)libbpf.so
167 $(OUTPUT)libbpf.a: $(BPF_IN_STATIC)
170 $(OUTPUT)libbpf.pc:
[all …]
H A D.gitignore2 libbpf.pc
3 libbpf.so.*
H A DBuild1 libbpf-y := libbpf.o bpf.o nlattr.o btf.o libbpf_errno.o str_error.o \
/linux-6.15/tools/testing/selftests/bpf/benchs/
H A Drun_bench_ringbufs.sh10 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
15 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
20 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
43 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do
/linux-6.15/Documentation/bpf/libbpf/
H A Dlibbpf_build.rst3 Building libbpf
6 libelf and zlib are internal dependencies of libbpf and thus are required to link
14 To build both static libbpf.a and shared libbpf.so:
21 To build only static libbpf.a library in directory build/ and install them
22 together with libbpf headers in a staging directory root/:
30 To build both static libbpf.a and shared libbpf.so against a custom libelf
31 dependency installed in /build/root/ and install them together with libbpf
H A Dlibbpf_overview.rst4 libbpf Overview
32 BPF App Lifecycle and libbpf APIs
58 * **Attachment phase**: In this phase, libbpf
201 Getting Started with libbpf
204 Check out the `libbpf-bootstrap <https://github.com/libbpf/libbpf-bootstrap>`_
208 See also `libbpf API documentation
211 libbpf and Rust
215 `Libbpf-rs <https://github.com/libbpf/libbpf-rs>`_ library instead of bindgen
216 bindings directly to libbpf. Libbpf-rs wraps libbpf functionality in
222 libbpf logging
[all …]
H A Dindex.rst6 libbpf title
9 If you are looking to develop BPF applications using the libbpf library, this
12 To get started, it is recommended to begin with the :doc:`libbpf Overview
14 libbpf APIs and their usage. This will give you a solid foundation to start
15 exploring and utilizing the various features of libbpf to develop your BPF
22 API Documentation <https://libbpf.readthedocs.io/en/latest/api.html>
28 All general BPF questions, including kernel functionality, libbpf APIs and their
H A Dlibbpf_naming_convention.rst6 libbpf API provides access to a few logically separated groups of
9 new function or type is added to keep libbpf API clean and consistent.
11 All types and functions provided by libbpf API should have one of the
53 to ``libbpf.h``. BTF types and functions should go to ``btf.h``.
89 To make future ABI extensions possible libbpf ABI is versioned.
90 Versioning is implemented by ``libbpf.map`` version script that is
100 For example, if current state of ``libbpf.map`` is:
113 ``libbpf.map`` should be changed like this:
138 Under https://github.com/libbpf/libbpf there is a (semi-)automated
148 The libbpf API is documented via comments above definitions in
[all …]
/linux-6.15/tools/testing/selftests/net/
H A Dbpf.mk13 BPFOBJ := $(BUILD_DIR)/libbpf/libbpf.a
15 MAKE_DIRS := $(BUILD_DIR)/libbpf
47 | $(BUILD_DIR)/libbpf
49 $(Q)$(MAKE) $(submake_extras) -C $(BPFDIR) OUTPUT=$(BUILD_DIR)/libbpf/ \
/linux-6.15/tools/testing/selftests/hid/
H A DMakefile71 BPFOBJ := $(BUILD_DIR)/libbpf/libbpf.a
81 HOST_BPFOBJ := $(HOST_BUILD_DIR)/libbpf/libbpf.a
101 MAKE_DIRS := $(sort $(BUILD_DIR)/libbpf $(HOST_BUILD_DIR)/libbpf \
128 LIBBPF_OUTPUT=$(HOST_BUILD_DIR)/libbpf/ \
133 | $(BUILD_DIR)/libbpf
134 $(Q)$(MAKE) $(submake_extras) -C $(BPFDIR) OUTPUT=$(BUILD_DIR)/libbpf/ \
140 | $(HOST_BUILD_DIR)/libbpf
143 OUTPUT=$(HOST_BUILD_DIR)/libbpf/ CC=$(HOSTCC) LD=$(HOSTLD) \
/linux-6.15/tools/testing/selftests/sched_ext/
H A DMakefile29 BPFOBJ_DIR := $(OBJ_DIR)/libbpf
31 BPFOBJ := $(BPFOBJ_DIR)/libbpf.a
32 LIBBPF_OUTPUT := $(OBJ_DIR)/libbpf/libbpf.a
36 HOST_LIBBPF_OUTPUT := $(OBJ_DIR)/host/libbpf/
99 MAKE_DIRS := $(sort $(OBJ_DIR)/libbpf $(OBJ_DIR)/libbpf \
109 | $(OBJ_DIR)/libbpf
110 $(Q)$(MAKE) $(submake_extras) -C $(BPFDIR) OUTPUT=$(OBJ_DIR)/libbpf/ \
/linux-6.15/tools/build/
H A DMakefile.feature129 libbpf \
130 libbpf-btf__load_from_kernel_by_id \
131 libbpf-bpf_prog_load \
132 libbpf-bpf_object__next_program \
133 libbpf-bpf_object__next_map \
134 libbpf-bpf_program__set_insns \
135 libbpf-bpf_create_map \
/linux-6.15/tools/sched_ext/
H A DMakefile59 BPFOBJ_DIR := $(OBJ_DIR)/libbpf
62 BPFOBJ := $(BPFOBJ_DIR)/libbpf.a
72 HOST_BPFOBJ := $(HOST_BUILD_DIR)/libbpf/libbpf.a
128 MAKE_DIRS := $(sort $(OBJ_DIR)/libbpf $(HOST_BUILD_DIR)/libbpf \
138 | $(OBJ_DIR)/libbpf
139 $(Q)$(MAKE) $(submake_extras) -C $(BPFDIR) OUTPUT=$(OBJ_DIR)/libbpf/ \
149 LIBBPF_OUTPUT=$(HOST_BUILD_DIR)/libbpf/ \
/linux-6.15/tools/tracing/rtla/
H A DMakefile.config66 $(call feature_check,libbpf)
67 ifeq ($(feature-libbpf), 1)
70 $(info libbpf is missing, building without BPF skeleton support.)
71 $(info Please install libbpf-dev/libbpf-devel)
/linux-6.15/tools/build/feature/
H A DMakefile61 test-libbpf.bin \
339 $(OUTPUT)test-libbpf.bin:
342 $(OUTPUT)test-libbpf-btf__load_from_kernel_by_id.bin:
345 $(OUTPUT)test-libbpf-bpf_prog_load.bin:
348 $(OUTPUT)test-libbpf-bpf_map_create.bin:
351 $(OUTPUT)test-libbpf-bpf_object__next_program.bin:
354 $(OUTPUT)test-libbpf-bpf_object__next_map.bin:
357 $(OUTPUT)test-libbpf-bpf_program__set_insns.bin:
360 $(OUTPUT)test-libbpf-btf__raw_data.bin:
/linux-6.15/tools/bpf/bpftool/Documentation/
H A Dbpftool-gen.rst48 command) or passed directly into **libbpf** (using **bpf_object__open()**
54 BPF skeleton is an alternative interface to existing libbpf APIs for
62 be passed to existing generic libbpf APIs.
69 can't be automatically attached by libbpf, user can attach them manually,
72 eliminates the need for users to manage links manually and rely on libbpf
90 skeleton API to create and load BPF object, and later use libbpf APIs to
107 global data maps. It corresponds to libbpf's **bpf_object__load**\ ()
162 When kernels aren't compiled with CONFIG_DEBUG_INFO_BTF, libbpf, when
187 the majority of the libbpf infrastructure, and does not need libelf.
292 #include <bpf/libbpf.h>
[all …]
H A Dcommon_options.rst8 of the libbpf version in use, and optional features that were included when
23 from libbpf as well as from the verifier, when attempting to load programs.
/linux-6.15/tools/bpf/bpftool/
H A DMakefile19 LIBBPF_OUTPUT := $(_OUTPUT)libbpf/
23 LIBBPF := $(LIBBPF_OUTPUT)libbpf.a
25 LIBBPF_BOOTSTRAP_OUTPUT := $(BOOTSTRAP_OUTPUT)libbpf/
29 LIBBPF_BOOTSTRAP := $(LIBBPF_BOOTSTRAP_OUTPUT)libbpf.a
57 $(call QUIET_CLEAN, libbpf)
61 $(call QUIET_CLEAN, libbpf-bootstrap)
/linux-6.15/Documentation/bpf/
H A Dmap_queue_stack.rst77 A userspace program can push ``value`` onto a queue or stack using libbpf's
91 using the libbpf ``bpf_map_lookup_elem`` function. The ``key`` parameter must be
103 the libbpf ``bpf_map_lookup_and_delete_elem`` function. The ``key`` parameter
127 This snippet shows how to use libbpf's low-level API to create a queue from
/linux-6.15/kernel/bpf/preload/iterators/
H A DMakefile16 LIBBPF_OUTPUT := $(abs_out)/libbpf
19 BPFOBJ := $(LIBBPF_OUTPUT)/libbpf.a
/linux-6.15/tools/testing/selftests/bpf/
H A DMakefile194 BPFOBJ := $(BUILD_DIR)/libbpf/libbpf.a
204 HOST_BPFOBJ := $(HOST_BUILD_DIR)/libbpf/libbpf.a
226 MAKE_DIRS := $(sort $(BUILD_DIR)/libbpf $(HOST_BUILD_DIR)/libbpf \
305 BPFOBJ_OUTPUT=$(BUILD_DIR)/libbpf/ \
344 LIBBPF_OUTPUT=$(HOST_BUILD_DIR)/libbpf/ \
356 LIBBPF_OUTPUT=$(BUILD_DIR)/libbpf/ \
375 | $(BUILD_DIR)/libbpf
376 $(Q)$(MAKE) $(submake_extras) -C $(BPFDIR) OUTPUT=$(BUILD_DIR)/libbpf/ \
384 | $(HOST_BUILD_DIR)/libbpf
389 OUTPUT=$(HOST_BUILD_DIR)/libbpf/ \
/linux-6.15/drivers/hid/bpf/progs/
H A DMakefile16 LIBBPF_OUTPUT := $(abs_out)/libbpf
19 BPFOBJ := $(LIBBPF_OUTPUT)/libbpf.a
/linux-6.15/kernel/bpf/preload/
H A D.gitignore1 /libbpf
/linux-6.15/tools/bpf/resolve_btfids/
H A D.gitignore3 /libbpf/
H A DMakefile33 BPFOBJ := $(OUTPUT)/libbpf/libbpf.a

123