Home
last modified time | relevance | path

Searched defs:prog_type (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/tools/bpf/bpftool/
Dfeature.c517 probe_prog_load_ifindex(enum bpf_prog_type prog_type, in probe_prog_load_ifindex()
538 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex()
551 probe_prog_type(enum bpf_prog_type prog_type, const char *prog_type_str, in probe_prog_type()
659 probe_helper_ifindex(enum bpf_func_id id, enum bpf_prog_type prog_type, in probe_helper_ifindex()
686 probe_helper_for_progtype(enum bpf_prog_type prog_type, bool supported_type, in probe_helper_for_progtype()
723 probe_helpers_for_progtype(enum bpf_prog_type prog_type, in probe_helpers_for_progtype()
938 unsigned int prog_type = BPF_PROG_TYPE_UNSPEC; in section_program_types() local
986 unsigned int prog_type = BPF_PROG_TYPE_UNSPEC; in section_helpers() local
Dmap.c495 unsigned int prog_type = atoi(owner_prog_type); in show_map_close_json() local
584 unsigned int prog_type = atoi(owner_prog_type); in show_map_close_plain() local
Dprog.c1443 get_prog_type_by_name(const char *name, enum bpf_prog_type *prog_type, in get_prog_type_by_name()
1693 enum bpf_prog_type prog_type = common_prog_type; in load_with_options() local
/linux-6.6.21/tools/lib/bpf/
Dlibbpf_probes.c103 static int probe_prog_load(enum bpf_prog_type prog_type, in probe_prog_load()
205 int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts) in libbpf_probe_bpf_prog_type()
403 int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type, enum bpf_func_id helper_id, in libbpf_probe_bpf_helper()
Dgen_loader.c935 enum bpf_prog_type prog_type, const char *prog_name, in bpf_gen__prog_load()
Dbpf.c230 int bpf_prog_load(enum bpf_prog_type prog_type, in bpf_prog_load()
Dlibbpf.c376 enum bpf_prog_type prog_type; member
8866 enum bpf_prog_type prog_type, in libbpf_register_prog_handler()
9042 int libbpf_prog_type_by_name(const char *name, enum bpf_prog_type *prog_type, in libbpf_prog_type_by_name()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dsection_names.c11 enum bpf_prog_type prog_type; member
166 enum bpf_prog_type prog_type; in test_prog_type_by_name() local
Dlibbpf_probes.c28 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_probe_prog_types() local
95 enum bpf_prog_type prog_type; in test_libbpf_probe_helpers() member
Dalign.c20 enum bpf_prog_type prog_type; member
605 int prog_type = test->prog_type; in do_test_single() local
Dsignal_pending.c10 static void test_signal_pending_by_type(enum bpf_prog_type prog_type) in test_signal_pending_by_type()
Dlibbpf_str.c180 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_bpf_prog_type_str() local
Dctx_rewrite.c33 enum bpf_prog_type prog_type; member
732 enum bpf_prog_type prog_type; member
Dbtf.c5607 __u32 prog_type; member
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_verifier.c145 enum bpf_prog_type prog_type; member
577 static int create_prog_dummy_simple(enum bpf_prog_type prog_type, int ret) in create_prog_dummy_simple()
587 static int create_prog_dummy_loop(enum bpf_prog_type prog_type, int mfd, in create_prog_dummy_loop()
602 static int create_prog_array(enum bpf_prog_type prog_type, uint32_t max_elem, in create_prog_array()
1009 static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, in do_test_fixup()
1558 int prog_len, prog_type = test->prog_type; in do_test_single() local
Dveristat.c823 enum bpf_prog_type *prog_type, in guess_prog_type_by_ctx_name()
837 enum bpf_prog_type prog_type; in guess_prog_type_by_ctx_name() member
906 enum bpf_prog_type prog_type; in fixup_obj() local
Dtest_sockmap.c1800 int prog_type[] = { variable
Dtest_offload.py210 def bpftool_prog_load(sample, file_name, maps=[], prog_type="xdp", dev=None, argument
/linux-6.6.21/include/linux/
Dbtf.h528 static inline int register_btf_kfunc_id_set(enum bpf_prog_type prog_type, in register_btf_kfunc_id_set()
548 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_get_prog_ctx_type()
554 enum bpf_prog_type prog_type) { in get_kern_ctx_btf_id()
/linux-6.6.21/drivers/hid/bpf/
Dhid_bpf_jmp_table.c352 int prog_type = HID_BPF_PROG_TYPE_UNDEF; in hid_bpf_get_prog_attach_type() local
397 __hid_bpf_attach_prog(struct hid_device *hdev, enum hid_bpf_prog_type prog_type, in __hid_bpf_attach_prog()
Dhid_bpf_dispatch.c247 int fd, err, prog_type; in do_hid_bpf_attach_prog() local
/linux-6.6.21/kernel/bpf/
Dbtf.c5613 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_get_prog_ctx_type()
5685 enum bpf_prog_type prog_type, in btf_translate_to_vmlinux()
5697 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type) in get_kern_ctx_btf_id()
6767 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in btf_check_func_arg_match() local
6956 enum bpf_prog_type prog_type = prog->type; in btf_prepare_func_args() local
7818 static int bpf_prog_type_to_kfunc_hook(enum bpf_prog_type prog_type) in bpf_prog_type_to_kfunc_hook()
7866 enum bpf_prog_type prog_type = resolve_prog_type(prog); in btf_kfunc_id_set_contains() local
7918 int register_btf_kfunc_id_set(enum bpf_prog_type prog_type, in register_btf_kfunc_id_set()
Dsyscall.c2430 bpf_prog_load_check_attach(enum bpf_prog_type prog_type, in bpf_prog_load_check_attach()
2531 static bool is_net_admin_prog_type(enum bpf_prog_type prog_type) in is_net_admin_prog_type()
2562 static bool is_perfmon_prog_type(enum bpf_prog_type prog_type) in is_perfmon_prog_type()
Dcore.c2253 enum bpf_prog_type prog_type = resolve_prog_type(fp); in bpf_prog_map_compatible() local
Dverifier.c5461 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in may_access_direct_pkt_data() local
9935 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in check_helper_call() local
14912 enum bpf_prog_type prog_type = resolve_prog_type(env->prog); in check_return_code() local
17484 enum bpf_prog_type prog_type = resolve_prog_type(prog); in check_map_prog_compatibility() local
18855 enum bpf_prog_type prog_type = resolve_prog_type(prog); in do_misc_fixups() local

12