Lines Matching refs:programs
9 heavy lifting of loading, verifying, and attaching BPF programs to various
15 * Provides high-level and low-level APIs for user space programs to interact
16 with BPF programs. The low-level APIs wrap all the bpf system call
18 over the interactions between user space and BPF programs.
20 The skeleton file simplifies the process for the user space programs to access
21 global variables and work with BPF programs.
25 BPF programs that can be compiled once and run across different kernel
35 A BPF application consists of one or more BPF programs (either cooperating or
37 variables are shared between all BPF programs, which allows them to cooperate on
38 a common set of data. libbpf provides APIs that user space programs can use to
39 manipulate the BPF programs by triggering different phases of a BPF application
46 object file and discovers BPF maps, BPF programs, and global variables. After
52 maps, resolves various relocations, and verifies and loads BPF programs into
59 attaches BPF programs to various BPF hook points (e.g., tracepoints, kprobes,
61 phase, BPF programs perform useful work such as processing
66 libbpf detaches BPF programs and unloads them from the kernel. BPF maps are
74 simplify code for manipulating BPF programs from user space. Skeleton code
87 * ``<name>__attach()`` – attaches all auto-attachable BPF programs (it’s
89 * ``<name>__destroy()`` – detaches all BPF programs and
92 Using the skeleton code is the recommended way to work with bpf programs. Keep
101 * BPF skeleton provides an interface for user space programs to work with BPF
103 into user space. The struct interface allows user space programs to initialize
104 BPF programs before the BPF load phase and fetch and update data from user
108 available maps, programs, etc. BPF skeleton provides direct access to all the
109 BPF maps and BPF programs as struct fields. This eliminates the need for
120 libbpf provides BPF-side APIs that BPF programs can use to interact with the
133 BPF programs work in the kernel space and have access to kernel memory and data
145 To make BPF programs portable libbpf relies on the BTF type information of the
161 libbpf enables portability of BPF programs by looking at the BPF program’s