Lines Matching full:program

41 	LIBBPF_ERRNO__LOAD,	/* Load program failure for unknown reason */
42 LIBBPF_ERRNO__VERIFY, /* Kernel verifier blocks program loading */
43 LIBBPF_ERRNO__PROG2BIG, /* Program too big */
45 LIBBPF_ERRNO__PROGTYPE, /* Kernel doesn't support this program type */
82 * @brief **libbpf_bpf_prog_type_str()** converts the provided program type
84 * @param t The program type.
85 * @return Pointer to a static string identifying the program type. NULL is
153 * with bpf_program__set_log() on per-program level, to get
160 * per-program buffer with bpf_program__set_log_buf() to preserve each
161 * individual program's verification log. Keep using kernel_log_buf
168 * means that libbpf will attempt loading BTF or program without any
173 * for successfully loaded BTF or program), and the actual log buffer
318 * @brief **bpf_program__insns()** gives read-only access to BPF program's
320 * @param prog BPF program for which to return instructions
322 * specified BPF program
327 * Keep in mind, libbpf can modify and append/delete BPF program's
331 * instructions. As an example, during BPF object load phase BPF program
340 * @brief **bpf_program__set_insns()** can set BPF program's underlying
347 * @param prog BPF program for which to return instructions
350 * specified BPF program
358 * that form specified BPF program.
359 * @param prog BPF program for which to return number of BPF instructions
370 * @brief **bpf_program__pin()** pins the BPF program to a file
375 * @param prog BPF program to pin, must already be loaded
382 * @brief **bpf_program__unpin()** unpins the BPF program from a file
386 * The file pinning the BPF program can also be unlinked by a different
389 * @param prog BPF program to unpin
422 * @param prog BPF program to unpin
435 * a BPF program based on auto-detection of program type, attach type,
438 * @param prog BPF program to attach
457 /* don't use BPF link when attach BPF program */
554 * @brief **bpf_program__attach_uprobe_multi()** attaches a BPF program
568 * @param prog BPF program to attach
573 * BPF program to
596 * @brief **bpf_program__attach_ksyscall()** attaches a BPF program
604 * attach specified program using kprobe/kretprobe mechanism.
619 * @param prog BPF program to attach
656 * @brief **bpf_program__attach_uprobe()** attaches a BPF program
659 * to. You can also optionally attach the program to the function
662 * @param prog BPF program to attach
681 * @param prog BPF program to attach
686 * @param opts Options for altering program attachment
710 * @param prog BPF program to attach
716 * @param opts Options for altering program attachment
822 * @brief **bpf_program__set_type()** sets the program
823 * type of the passed BPF program.
824 * @param prog BPF program to set the program type for
825 * @param type program type to set the BPF map to have
840 * attach type of the passed BPF program. This is used for
842 * @param prog BPF program to set the attach type for
857 /* Per-program log level and log buffer getters/setters.
868 * for supported BPF program types:
873 * @param prog BPF program to set the attach type for
924 * verifier as dead code, otherwise BPF verifier will reject such BPF program.
1321 * least one sample is consumed, and the BPF program did not invoke the
1479 * @param prog_type BPF program type to detect kernel support for
1481 * @return 1, if given program type is supported; 0, if given program type is
1504 * use of a given BPF helper from specified BPF program type.
1505 * @param prog_type BPF program type used to check the support of BPF helper
1508 * @return 1, if given combination of program type and helper is supported; 0,
1641 * Custom handling of BPF program's SEC() definitions
1646 /* Called during bpf_object__open() for each recognized BPF program. Callback
1652 /* Called right before libbpf performs bpf_prog_load() to load BPF program
1679 /* BPF program initialization callback (see libbpf_prog_setup_fn_t).
1683 /* BPF program loading callback (see libbpf_prog_prepare_load_fn_t).
1687 /* BPF program attach callback (see libbpf_prog_attach_fn_t).
1695 * @brief **libbpf_register_prog_handler()** registers a custom BPF program
1698 * @param prog_type BPF program type associated with specified section
1708 * SEC("abc"). If BPF program specifies SEC("abc/whatever") it will result
1715 * - if *sec* is NULL, custom handler is registered for any BPF program that
1737 * custom BPF program SEC() handler.