Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_verif_scale.c20 static int check_load(const char *file, enum bpf_prog_type type) in check_load()
50 enum bpf_prog_type attach_type;
55 enum bpf_prog_type attach_type, in scale_test()
H A Dlibbpf_probes.c28 enum bpf_prog_type prog_type = (enum bpf_prog_type)e->val; in test_libbpf_probe_prog_types()
95 enum bpf_prog_type prog_type; in test_libbpf_probe_helpers()
H A Dsection_names.c11 enum bpf_prog_type prog_type;
166 enum bpf_prog_type prog_type; in test_prog_type_by_name()
H A Dlibbpf_str.c180 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.c33 enum bpf_prog_type prog_type;
732 enum bpf_prog_type prog_type;
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.h14 int bpf_prog_test_load(const char *file, enum bpf_prog_type type,
16 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns,
H A Dtesting_helpers.c255 int bpf_prog_test_load(const char *file, enum bpf_prog_type type, in bpf_prog_test_load()
295 int bpf_test_load_program(enum bpf_prog_type type, const struct bpf_insn *insns, in bpf_test_load_program()
H A Dtest_verifier.c145 enum bpf_prog_type prog_type;
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()
/openbmc/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.h496 int register_btf_kfunc_id_set(enum bpf_prog_type prog_type,
505 const struct btf_type *t, enum bpf_prog_type prog_type,
507 int get_kern_ctx_btf_id(struct bpf_verifier_log *log, enum bpf_prog_type prog_type);
528 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()
H A Dbpf-cgroup.h412 enum bpf_prog_type ptype, struct bpf_prog *prog);
414 enum bpf_prog_type ptype);
429 enum bpf_prog_type ptype, in cgroup_bpf_prog_attach()
436 enum bpf_prog_type ptype) in cgroup_bpf_prog_detach()
H A Dbpf.h292 enum bpf_prog_type type;
1411 enum bpf_prog_type saved_dst_prog_type;
1497 enum bpf_prog_type type; /* Type of BPF program */
2061 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
2375 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type);
2505 enum bpf_prog_type type, in bpf_prog_get_type_dev()
2631 enum bpf_prog_type type) in bpf_prog_get_type_path()
2766 enum bpf_prog_type type) in bpf_prog_get_type()
2774 bool bpf_prog_get_ok(struct bpf_prog *, enum bpf_prog_type *, bool);
2837 int sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
[all …]
H A Dbpf_mprog.h334 static inline bool bpf_mprog_supported(enum bpf_prog_type type) in bpf_mprog_supported()
H A Dbpf_verifier.h761 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog) in resolve_prog_type()
/openbmc/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()
403 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.h88 LIBBPF_API const char *libbpf_bpf_prog_type_str(enum bpf_prog_type t);
284 libbpf_prog_type_by_name(const char *name, enum bpf_prog_type *prog_type,
819 LIBBPF_API enum bpf_prog_type bpf_program__type(const struct bpf_program *prog);
833 enum bpf_prog_type type);
1488 LIBBPF_API int libbpf_probe_bpf_prog_type(enum bpf_prog_type prog_type, const void *opts);
1515 LIBBPF_API int libbpf_probe_bpf_helper(enum bpf_prog_type prog_type,
1732 enum bpf_prog_type prog_type,
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.h63 enum bpf_prog_type prog_type, const char *prog_name,
H A Dbpf.h109 LIBBPF_API int bpf_prog_load(enum bpf_prog_type prog_type,
/openbmc/linux/tools/bpf/bpftool/
H A 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()
/openbmc/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 Dinode.c556 static struct bpf_prog *__get_prog_inode(struct inode *inode, enum bpf_prog_type type) in __get_prog_inode()
583 struct bpf_prog *bpf_prog_get_type_path(const char *name, enum bpf_prog_type type) in bpf_prog_get_type_path()
H A Dsyscall.c2050 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog) in find_prog_type()
2355 enum bpf_prog_type *attach_type, bool attach_drv) in bpf_prog_get_ok()
2394 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, in bpf_prog_get_type_dev()
2433 bpf_prog_load_check_attach(enum bpf_prog_type prog_type, in bpf_prog_load_check_attach()
2534 static bool is_net_admin_prog_type(enum bpf_prog_type prog_type) in is_net_admin_prog_type()
2565 static bool is_perfmon_prog_type(enum bpf_prog_type prog_type) in is_perfmon_prog_type()
2588 enum bpf_prog_type type = attr->prog_type; in bpf_prog_load()
3733 static enum bpf_prog_type
3802 enum bpf_prog_type ptype; in bpf_prog_attach_check_attach_type()
3876 enum bpf_prog_type ptype; in bpf_prog_attach()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dmain.h524 enum bpf_prog_type type;

12