Home
last modified time | relevance | path

Searched refs:bpf_attach_type (Results 1 – 25 of 39) sorted by relevance

12

/linux/tools/bpf/bpftool/
H A Dcgroup.c88 static enum bpf_attach_type parse_attach_type(const char *str) in parse_attach_type()
91 enum bpf_attach_type type; in parse_attach_type()
141 static int show_bpf_prog(int id, enum bpf_attach_type attach_type, in show_bpf_prog()
214 static int count_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type) in count_attached_bpf_progs()
247 static int show_effective_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_effective_bpf_progs()
272 static int show_attached_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_attached_bpf_progs()
322 static int show_bpf_progs(int cgroup_fd, enum bpf_attach_type type, in show_bpf_progs()
562 enum bpf_attach_type attach_type; in do_attach()
622 enum bpf_attach_type attach_type; in do_detach()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsection_names.c12 enum bpf_attach_type expected_attach_type;
16 enum bpf_attach_type attach_type;
210 enum bpf_attach_type expected_attach_type; in test_prog_type_by_name()
234 enum bpf_attach_type attach_type; in test_attach_type_by_name()
H A Dlibbpf_str.c40 enum bpf_attach_type attach_type = (enum bpf_attach_type)e->val; in test_libbpf_bpf_attach_type_str()
H A Dcgroup_preorder.c10 enum bpf_attach_type prog_c_atype, prog_c2_atype, prog_p_atype, prog_p2_atype; in run_getsockopt_test()
120 enum bpf_attach_type atype; in run_link_replace_test()
H A Dcgroup_mprog_ordering.c10 enum bpf_attach_type prog_p_atype, prog_p2_atype; in run_getsockopt_test()
H A Dctx_rewrite.c35 enum bpf_attach_type expected_attach_type;
636 enum bpf_attach_type expected_attach_type;
H A Dsockopt.c29 enum bpf_attach_type attach_type;
30 enum bpf_attach_type expected_attach_type;
988 enum bpf_attach_type expected_attach_type) in load_prog()
H A Dsock_addr.c63 enum bpf_attach_type attach_type,
354 enum bpf_attach_type attach_type;
378 enum bpf_attach_type attach_type, \
410 enum bpf_attach_type attach_type, \
H A Dsockmap_basic.c330 static void test_sockmap_skb_verdict_attach(enum bpf_attach_type first, in test_sockmap_skb_verdict_attach()
331 enum bpf_attach_type second) in test_sockmap_skb_verdict_attach()
405 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) in test_sockmap_progs_query()
H A Dtest_sysctl.c18 enum bpf_attach_type attach_type;
1533 enum bpf_attach_type atype = test->attach_type; in run_test_case()
/linux/tools/lib/bpf/
H A Dlibbpf_legacy.h131 LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *pro…
H A Dbpf_gen_internal.h71 void bpf_gen__record_attach_target(struct bpf_gen *gen, const char *name, enum bpf_attach_type type…
H A Dskel_internal.h326 enum bpf_attach_type attach_type) in skel_link_create()
H A Dlibbpf_internal.h443 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type,
/linux/include/linux/
H A Dbpf-netns.h10 to_netns_bpf_attach_type(enum bpf_attach_type attach_type) in to_netns_bpf_attach_type()
H A Dbpf.h298 enum bpf_attach_type expected_attach_type;
1765 enum bpf_attach_type saved_dst_attach_type;
1884 enum bpf_attach_type expected_attach_type; /* For some prog types */
1920 enum bpf_attach_type attach_type;
2192 static inline bool is_tracing_multi(enum bpf_attach_type type) in is_tracing_multi()
2359 enum bpf_attach_type attach_type);
2364 enum bpf_attach_type attach_type) in bpf_trampoline_link_cgroup_shim()
2891 enum bpf_attach_type attach_type);
2894 enum bpf_attach_type attach_type, bool sleepable);
2897 enum bpf_attach_type attach_type, u64 cookie);
[all …]
/linux/kernel/bpf/
H A Dcgroup.c183 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
234 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) in bpf_cgroup_atype_find()
258 enum bpf_attach_type type, in bpf_cgroup_storages_alloc()
301 enum bpf_attach_type attach_type) in bpf_cgroup_storages_link()
809 enum bpf_attach_type type, u32 flags, u32 id_or_fd, in __cgroup_bpf_attach()
938 enum bpf_attach_type type, in cgroup_bpf_attach()
1198 struct bpf_cgroup_link *link, enum bpf_attach_type type, in __cgroup_bpf_detach()
1261 enum bpf_attach_type type, u64 revision) in cgroup_bpf_detach()
1278 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query()
H A Dtoken.c255 enum bpf_attach_type attach_type) in bpf_token_allow_prog_type()
H A Dtrampoline.c179 enum bpf_attach_type eatype = prog->expected_attach_type; in bpf_prog_has_trampoline()
1072 enum bpf_attach_type attach_type) in cgroup_shim_alloc()
1125 enum bpf_attach_type attach_type) in bpf_trampoline_link_cgroup_shim()
H A Dnet_namespace.c476 enum bpf_attach_type type; in netns_bpf_link_create()
H A Dlocal_storage.c580 enum bpf_attach_type type) in bpf_cgroup_storage_link()
H A Dsyscall.c2729 enum bpf_attach_type expected_attach_type, in bpf_prog_load_check_attach()
3231 enum bpf_attach_type attach_type, bool sleepable) in bpf_link_init_sleepable()
3245 enum bpf_attach_type attach_type) in bpf_link_init()
3252 enum bpf_attach_type attach_type, u64 cookie) in bpf_tramp_link_init()
3638 enum bpf_attach_type attach_type) in bpf_tracing_prog_attach()
4299 enum bpf_attach_type attach_type) in bpf_raw_tp_link_attach()
4398 attach_type_to_prog_type(enum bpf_attach_type attach_type) in attach_type_to_prog_type()
4475 enum bpf_attach_type attach_type) in bpf_prog_attach_check_attach_type()
4545 static bool is_cgroup_prog_type(enum bpf_prog_type ptype, enum bpf_attach_type atype, in is_cgroup_prog_type()
/linux/Documentation/bpf/
H A Dmap_cgroup_storage.rst80 __u32 map_lookup(struct bpf_map *map, __u64 cgrp, enum bpf_attach_type type)
115 __u32 map_lookup(struct bpf_map *map, __u64 cgrp, enum bpf_attach_type type)
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_global_ptr_args.c273 __weak int subprog_enum_untrusted(enum bpf_attach_type *p __arg_untrusted) in subprog_enum_untrusted()
/linux/tools/testing/selftests/bpf/
H A Dveristat.c1190 enum bpf_attach_type *attach_type) in guess_prog_type_by_ctx_name()
1204 enum bpf_attach_type attach_type; in guess_prog_type_by_ctx_name()
1343 enum bpf_attach_type attach_type; in fixup_obj()
2702 enum bpf_attach_type attach_type = 0; in parse_stat_value()

12