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.h589 int register_btf_kfunc_id_set(enum bpf_prog_type prog_type,
598 const struct btf_type *t, enum bpf_prog_type prog_type,
600 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type);
654 static inline int register_btf_kfunc_id_set(enum bpf_prog_type prog_type, in register_btf_kfunc_id_set()
674 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_is_prog_ctx_type()
680 enum bpf_prog_type prog_type) { in get_kern_ctx_btf_id()
H A Dbpf.h292 enum bpf_prog_type type;
1764 enum bpf_prog_type saved_dst_prog_type;
1883 enum bpf_prog_type type; /* Type of BPF program */
2708 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
2919 enum bpf_prog_type prog_type,
3099 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
3280 enum bpf_prog_type type, in bpf_prog_get_type_dev()
3448 enum bpf_prog_type type) in bpf_prog_get_type_path()
3587 enum bpf_prog_type type) in bpf_prog_get_type()
3595 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
[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.c287 int bpf_prog_test_load(const char *file, enum bpf_prog_type type, in bpf_prog_test_load()
327 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()
2651 enum bpf_prog_type *attach_type, bool attach_drv) in bpf_prog_get_ok()
2665 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, in __bpf_prog_get()
2689 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, in bpf_prog_get_type_dev()
2728 bpf_prog_load_check_attach(enum bpf_prog_type prog_type, in bpf_prog_load_check_attach()
2843 static bool is_net_admin_prog_type(enum bpf_prog_type prog_type) in is_net_admin_prog_type()
2874 static bool is_perfmon_prog_type(enum bpf_prog_type prog_type) in is_perfmon_prog_type()
2919 enum bpf_prog_type type = attr->prog_type; in BTF_ID_LIST_GLOBAL_SINGLE()
4397 static enum bpf_prog_type
4477 enum bpf_prog_type ptype; 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.c6090 static const struct btf_type *find_canonical_prog_ctx_type(enum bpf_prog_type prog_type) in find_canonical_prog_ctx_type()
6106 static int find_kern_ctx_type_id(enum bpf_prog_type prog_type) in find_kern_ctx_type_id()
6132 const struct btf_type *t, enum bpf_prog_type prog_type, in btf_is_prog_ctx_type()
6219 enum bpf_prog_type prog_type, in btf_validate_prog_ctx_type()
6355 enum bpf_prog_type prog_type, in btf_translate_to_vmlinux()
6363 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type) in get_kern_ctx_btf_id()
7046 enum bpf_prog_type tgt_type; in btf_ctx_access()
8000 enum bpf_prog_type prog_type = prog->type; in btf_prepare_func_args()
9056 static int bpf_prog_type_to_kfunc_hook(enum bpf_prog_type prog_type) in bpf_prog_type_to_kfunc_hook()
9107 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