Home
last modified time | relevance | path

Searched refs:bpf_prog_type (Results 1 – 25 of 38) sorted by relevance

12

/linux/include/linux/
H A Dbpf-netns.h33 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
50 enum bpf_prog_type ptype) in netns_bpf_prog_detach()
H A Dbtf.h590 int register_btf_kfunc_id_set(enum bpf_prog_type prog_type,
599 const struct btf_type *t, enum bpf_prog_type prog_type,
601 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type);
655 static inline int register_btf_kfunc_id_set(enum bpf_prog_type prog_type, in register_btf_kfunc_id_set()
675 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_is_prog_ctx_type()
681 enum bpf_prog_type prog_type) { in get_kern_ctx_btf_id()
H A Dbpf.h292 enum bpf_prog_type type;
1802 enum bpf_prog_type saved_dst_prog_type;
1922 enum bpf_prog_type type; /* Type of BPF program */
2747 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, in __bpf_map_get()
2958 enum bpf_prog_type prog_type,
3138 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
3319 enum bpf_prog_type type, in bpf_link_init_sleepable()
3487 enum bpf_prog_type type) in bpf_prog_test_run_sk_lookup()
3626 enum bpf_prog_type type)
3634 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, boo
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlibbpf_probes.c28 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_probe_prog_types()
99 enum bpf_prog_type prog_type; in test_libbpf_probe_helpers()
H A Dbpf_verif_scale.c20 static int check_load(const char *file, enum bpf_prog_type type) in check_load()
49 enum bpf_prog_type attach_type, in scale_test()
H A Dsection_names.c11 enum bpf_prog_type prog_type;
211 enum bpf_prog_type prog_type; in test_prog_type_by_name()
H A Dlibbpf_str.c187 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_bpf_prog_type_str()
H A Dsignal_pending.c10 static void test_signal_pending_by_type(enum bpf_prog_type prog_type) in test_signal_pending_by_type()
H A Dctx_rewrite.c34 enum bpf_prog_type prog_type;
635 enum bpf_prog_type prog_type;
H A Dsockopt.c28 enum bpf_prog_type prog_type;
987 enum bpf_prog_type prog_type, in load_prog()
H A Dalign.c
H A Dflow_dissector_reattach.c42 static int load_prog(enum bpf_prog_type type) in load_prog()
/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.h17 int bpf_prog_test_load(const char *file, enum bpf_prog_type type,
19 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
H A Dtesting_helpers.c288 int bpf_prog_test_load(const char *file, enum bpf_prog_type type, in bpf_prog_test_load()
328 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, in bpf_test_load_program()
H A Dtest_verifier.c143 enum bpf_prog_type prog_type;
575 static int create_prog_dummy_simple(enum bpf_prog_type prog_type, int ret) in create_prog_dummy_simple()
585 static int create_prog_dummy_loop(enum bpf_prog_type prog_type, int mfd, in create_prog_dummy_loop()
600 static int create_prog_array(enum bpf_prog_type prog_type, uint32_t max_elem, in create_prog_array()
1007 static void do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, in do_test_fixup()
/linux/tools/lib/bpf/
H A 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()
433 int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type, enum bpf_func_id helper_id, in libbpf_probe_bpf_helper()
H A Dlibbpf_legacy.h130 LIBBPF_API enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog);
H A Dbpf_gen_internal.h65 enum bpf_prog_type prog_type, const char *prog_name,
/linux/kernel/bpf/
H A Dmprog.c9 enum bpf_prog_type type) in bpf_mprog_link()
32 enum bpf_prog_type type) in bpf_mprog_prog()
55 enum bpf_prog_type type) in bpf_mprog_tuple_relative()
H A Dtoken.c254 enum bpf_prog_type prog_type, in bpf_token_allow_prog_type()
H A Dsyscall.c2354 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2668 enum bpf_prog_type *attach_type, bool attach_drv) in __bpf_prog_get()
2682 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, in __bpf_prog_get()
2706 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
2745 bpf_prog_load_check_attach(enum bpf_prog_type prog_type, in bpf_prog_load_check_attach()
2860 static bool is_net_admin_prog_type(enum bpf_prog_type prog_type) in is_net_admin_prog_type()
2891 static bool is_perfmon_prog_type(enum bpf_prog_type prog_type)
2936 enum bpf_prog_type type = attr->prog_type; in BTF_ID_LIST_GLOBAL_SINGLE()
4414 static enum bpf_prog_type in attach_type_to_prog_type()
4494 enum bpf_prog_type ptyp in bpf_prog_attach_check_attach_type()
[all...]
H A Dnet_namespace.c377 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in netns_bpf_prog_detach()
H A Dbtf.c6143 static const struct btf_type *find_canonical_prog_ctx_type(enum bpf_prog_type prog_type) in find_canonical_prog_ctx_type()
6159 static int find_kern_ctx_type_id(enum bpf_prog_type prog_type) in find_kern_ctx_type_id()
6185 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_is_prog_ctx_type()
6272 enum bpf_prog_type prog_type, in btf_validate_prog_ctx_type()
6408 enum bpf_prog_type prog_type, in btf_translate_to_vmlinux()
6416 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type) in get_kern_ctx_btf_id()
7106 enum bpf_prog_type tgt_type; in btf_ctx_access()
8060 enum bpf_prog_type prog_type = prog->type; in btf_prepare_func_args()
9117 static int bpf_prog_type_to_kfunc_hook(enum bpf_prog_type prog_type) in bpf_prog_type_to_kfunc_hook()
9168 enum bpf_prog_type prog_type = resolve_prog_type(prog); in btf_kfunc_is_allowed()
[all …]
/linux/scripts/gdb/linux/
H A Dbpf.py15 bpf_prog_type = utils.CachedType("struct bpf_prog") variable
82 bpf_prog_ptr_type = bpf_prog_type.get_type().pointer()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h524 enum bpf_prog_type type;

12