/linux-master/net/core/ |
H A D | filter.c | 8710 enum bpf_attach_type attach_type) 8716 switch (attach_type) { 8724 switch (attach_type) { 8731 switch (attach_type) { 8738 switch (attach_type) { 8708 __sock_filter_check_attach_type(int off, enum bpf_access_type access_type, enum bpf_attach_type attach_type) argument
|
H A D | sock_map.c | 74 ret = sock_map_prog_update(map, prog, NULL, attr->attach_type); 106 ret = sock_map_prog_update(map, NULL, prog, attr->attach_type); 1536 ret = sock_map_prog_lookup(map, &pprog, attr->query.attach_type);
|
/linux-master/kernel/bpf/ |
H A D | syscall.c | 2447 enum bpf_prog_type *attach_type, bool attach_drv) 2450 if (!attach_type) 2453 if (prog->type != *attach_type) 2461 static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, argument 2470 if (!bpf_prog_get_ok(prog, attach_type, attach_drv)) { 3275 "attach_type:\t%d\n" 3278 tr_link->attach_type, 3289 info->tracing.attach_type = tr_link->attach_type; 3376 link->attach_type 2446 bpf_prog_get_ok(struct bpf_prog *prog, enum bpf_prog_type *attach_type, bool attach_drv) argument 3899 attach_type_to_prog_type(enum bpf_attach_type attach_type) argument 3971 bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, enum bpf_attach_type attach_type) argument [all...] |
H A D | token.c | 271 enum bpf_attach_type attach_type) 273 if (!token || prog_type >= __MAX_BPF_PROG_TYPE || attach_type >= __MAX_BPF_ATTACH_TYPE) 277 (token->allowed_attachs & BIT_ULL(attach_type)); 269 bpf_token_allow_prog_type(const struct bpf_token *token, enum bpf_prog_type prog_type, enum bpf_attach_type attach_type) argument
|
H A D | cgroup.c | 138 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument 144 if (attach_type != BPF_LSM_CGROUP) 145 return to_cgroup_bpf_attach_type(attach_type); 184 bpf_cgroup_atype_find(enum bpf_attach_type attach_type, u32 attach_btf_id) argument 186 if (attach_type != BPF_LSM_CGROUP) 187 return to_cgroup_bpf_attach_type(attach_type); 217 key.attach_type = type; 251 enum bpf_attach_type attach_type) 256 bpf_cgroup_storage_link(storages[stype], cgrp, attach_type); 1026 enum bpf_attach_type type = attr->query.attach_type; 249 bpf_cgroup_storages_link(struct bpf_cgroup_storage *storages[], struct cgroup *cgrp, enum bpf_attach_type attach_type) argument [all...] |
H A D | btf.c | 5802 enum bpf_attach_type attach_type) 5863 switch (attach_type) { 5799 btf_validate_prog_ctx_type(struct bpf_verifier_log *log, const struct btf *btf, const struct btf_type *t, int arg, enum bpf_prog_type prog_type, enum bpf_attach_type attach_type) argument
|
/linux-master/include/linux/ |
H A D | bpf.h | 1620 enum bpf_attach_type attach_type; member in struct:bpf_tracing_link 2350 enum bpf_attach_type attach_type);
|
H A D | bpf-cgroup.h | 39 to_cgroup_bpf_attach_type(enum bpf_attach_type attach_type) argument 41 switch (attach_type) {
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 9484 static char *libbpf_get_type_names(bool attach_type) argument 9498 if (attach_type) { 9708 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type, argument 9711 switch (attach_type) { 9749 enum bpf_attach_type attach_type) 9754 btf_get_kernel_prefix_kind(attach_type, &prefix, &kind); 9759 enum bpf_attach_type attach_type) 9771 err = find_attach_btf_id(btf, name, attach_type); 9816 enum bpf_attach_type attach_type, 9821 ret = find_attach_btf_id(obj->btf_vmlinux, attach_name, attach_type); 9748 find_attach_btf_id(struct btf *btf, const char *name, enum bpf_attach_type attach_type) argument 9758 libbpf_find_vmlinux_btf_id(const char *name, enum bpf_attach_type attach_type) argument 9815 find_kernel_btf_id(struct bpf_object *obj, const char *attach_name, enum bpf_attach_type attach_type, int *btf_obj_fd, int *btf_type_id) argument 9855 enum bpf_attach_type attach_type = prog->expected_attach_type; local 9894 libbpf_attach_type_by_name(const char *name, enum bpf_attach_type *attach_type) argument 12415 enum bpf_attach_type attach_type; local [all...] |
H A D | libbpf_internal.h | 410 void btf_get_kernel_prefix_kind(enum bpf_attach_type attach_type,
|
H A D | libbpf.h | 306 enum bpf_attach_type *attach_type); 308 enum bpf_attach_type attach_type);
|
H A D | bpf.h | 444 enum bpf_attach_type attach_type,
|
H A D | bpf.c | 661 attr.attach_type = type; 699 attr.attach_type = type; 725 enum bpf_attach_type attach_type, 750 attr.link_create.attach_type = attach_type; 758 switch (attach_type) { 864 switch (attach_type) { 940 attr.query.attach_type = type; 724 bpf_link_create(int prog_fd, int target_fd, enum bpf_attach_type attach_type, const struct bpf_link_create_opts *opts) argument
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.c | 69 enum bpf_attach_type attach_type; member in struct:sock_addr_test 1331 err = bpf_prog_attach(progfd, cgfd, test->attach_type, 1343 switch (test->attach_type) { 1383 bpf_prog_detach(cgfd, test->attach_type);
|
H A D | veristat.c | 855 enum bpf_attach_type *attach_type) 869 enum bpf_attach_type attach_type; member in struct:__anon4460 900 *attach_type = ctx_map[i].attach_type; 938 enum bpf_attach_type attach_type; local 966 if (guess_prog_type_by_ctx_name(ctx_name, &prog_type, &attach_type) == 0) { 968 bpf_program__set_expected_attach_type(prog, attach_type); 853 guess_prog_type_by_ctx_name(const char *ctx_name, enum bpf_prog_type *prog_type, enum bpf_attach_type *attach_type) argument
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_str.c | 40 enum bpf_attach_type attach_type = (enum bpf_attach_type)e->val; local 45 if (attach_type == __MAX_BPF_ATTACH_TYPE) 49 attach_type_str = libbpf_bpf_attach_type_str(attach_type);
|
H A D | bpf_verif_scale.c | 50 enum bpf_prog_type attach_type; member in struct:scale_test_def 55 enum bpf_prog_type attach_type, 66 err = check_load(file, attach_type); 54 scale_test(const char *file, enum bpf_prog_type attach_type, bool should_fail) argument
|
H A D | tc_opts.c | 2558 attr.query.attach_type = target; 2569 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); 2587 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); 2601 attr.query.attach_type = target; 2616 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); 2630 attr.query.attach_type = target; 2645 ASSERT_EQ(attr.query.attach_type, targe [all...] |
H A D | sockmap_basic.c | 315 static void test_sockmap_progs_query(enum bpf_attach_type attach_type) argument 329 if (attach_type == BPF_SK_MSG_VERDICT) 334 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, 340 err = bpf_prog_attach(verdict_fd, map_fd, attach_type, 0); 345 err = bpf_prog_query(map_fd, attach_type, 0 /* query flags */, 353 bpf_prog_detach2(verdict_fd, map_fd, attach_type);
|
H A D | fexit_bpf2bpf.c | 142 ASSERT_EQ(link_info.tracing.attach_type,
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 110 __u32 attach_type; /* program attach type (enum bpf_attach_type) */ member in struct:bpf_cgroup_storage_key 302 * *attach_type* hook. 304 * The *attach_type* specifies the eBPF attachment point to 310 * or sock_ops type corresponding to the specified *attach_type*. 348 * hook specified by *attach_type*. The program must have been 458 * specified *attach_type* hook. 780 * *attach_type* hook and return a file descriptor handle for 1589 __u32 attach_type; member in struct:bpf_attr::__anon3137 1646 __u32 attach_type; member in struct:bpf_attr::__anon3144 1712 __u32 attach_type; /* attac member in struct:bpf_attr::__anon3150 6616 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3206 6622 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3207 6650 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3214 6715 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3226 6719 __u32 attach_type; member in struct:bpf_link_info::__anon3204::__anon3227 [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | prog.c | 1033 enum bpf_attach_type *attach_type, 1043 *attach_type = parse_attach_type(*argv); 1044 if (*attach_type == __MAX_BPF_ATTACH_TYPE) { 1049 if (*attach_type == BPF_FLOW_DISSECTOR) { 1067 enum bpf_attach_type attach_type; local 1072 &progfd, &attach_type, &mapfd); 1076 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); 1089 enum bpf_attach_type attach_type; local 1094 &progfd, &attach_type, &mapfd); 1098 err = bpf_prog_detach2(progfd, mapfd, attach_type); 1032 parse_attach_detach_args(int argc, char **argv, int *progfd, enum bpf_attach_type *attach_type, int *mapfd) argument [all...] |
H A D | link.c | 142 static void show_link_attach_type_json(__u32 attach_type, json_writer_t *wtr) argument 146 attach_type_str = libbpf_bpf_attach_type_str(attach_type); 148 jsonw_string_field(wtr, "attach_type", attach_type_str); 150 jsonw_uint_field(wtr, "attach_type", attach_type); 500 show_link_attach_type_json(info->tracing.attach_type, 508 show_link_attach_type_json(info->cgroup.attach_type, json_wtr); 516 show_link_attach_type_json(info->netns.attach_type, json_wtr); 523 show_link_attach_type_json(info->tcx.attach_type, json_wtr); 527 show_link_attach_type_json(info->netkit.attach_type, json_wt 600 show_link_attach_type_plain(__u32 attach_type) argument [all...] |
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 110 __u32 attach_type; /* program attach type (enum bpf_attach_type) */ member in struct:bpf_cgroup_storage_key 302 * *attach_type* hook. 304 * The *attach_type* specifies the eBPF attachment point to 310 * or sock_ops type corresponding to the specified *attach_type*. 348 * hook specified by *attach_type*. The program must have been 458 * specified *attach_type* hook. 780 * *attach_type* hook and return a file descriptor handle for 1589 __u32 attach_type; member in struct:bpf_attr::__anon2596 1646 __u32 attach_type; member in struct:bpf_attr::__anon2603 1712 __u32 attach_type; /* attac member in struct:bpf_attr::__anon2609 6616 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2665 6622 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2666 6650 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2673 6715 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2685 6719 __u32 attach_type; member in struct:bpf_link_info::__anon2663::__anon2686 [all...] |
/linux-master/drivers/net/ |
H A D | netkit.c | 506 attr->attach_type); 546 attr->attach_type); 578 attr->query.attach_type); 704 seq_printf(seq, "attach_type:\t%u (%s)\n", 721 info->netkit.attach_type = nkl->location; 748 nkl->location = attr->link_create.attach_type; 763 attr->link_create.attach_type);
|