/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 28 __u32 i, next_id, info_len, nr_id_found, duration = 0; in serial_test_bpf_obj_id() local 80 info_len = sizeof(struct bpf_map_info) * 2; in serial_test_bpf_obj_id() 81 bzero(&map_infos[i], info_len); in serial_test_bpf_obj_id() 83 &info_len); in serial_test_bpf_obj_id() 90 info_len != sizeof(struct bpf_map_info) || in serial_test_bpf_obj_id() 96 info_len, sizeof(struct bpf_map_info), in serial_test_bpf_obj_id() 105 info_len = sizeof(struct bpf_prog_info) * 2; in serial_test_bpf_obj_id() 106 bzero(&prog_infos[i], info_len); in serial_test_bpf_obj_id() 122 &info_len); in serial_test_bpf_obj_id() 127 info_len != sizeof(struct bpf_prog_info) || in serial_test_bpf_obj_id() [all …]
|
D | task_local_storage.c | 85 __u32 info_len = sizeof(info); in test_recursion() local 122 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in test_recursion() 128 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in test_recursion() 134 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in test_recursion() 173 __u32 info_len = sizeof(info); in test_nodeadlock() local 222 info_len = sizeof(info); in test_nodeadlock() 224 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in test_nodeadlock()
|
D | enable_stats.c | 10 __u32 info_len = sizeof(info); in test_enable_stats() local 30 memset(&info, 0, info_len); in test_enable_stats() 31 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in test_enable_stats()
|
D | flow_dissector_reattach.c | 60 __u32 info_len = sizeof(info); in query_prog_id() local 63 err = bpf_prog_get_info_by_fd(prog, &info, &info_len); in query_prog_id() 64 if (CHECK_FAIL(err || info_len != sizeof(info))) { in query_prog_id() 479 __u32 info_len, link_id; in test_link_get_info() local 499 info_len = sizeof(info); in test_link_get_info() 500 err = bpf_link_get_info_by_fd(link, &info, &info_len); in test_link_get_info() 505 CHECK_FAIL(info_len != sizeof(info)); in test_link_get_info() 523 info_len = sizeof(info); in test_link_get_info() 524 err = bpf_link_get_info_by_fd(link, &info, &info_len); in test_link_get_info() 529 CHECK_FAIL(info_len != sizeof(info)); in test_link_get_info() [all …]
|
D | fexit_bpf2bpf.c | 64 __u32 tgt_prog_id, info_len; in test_fexit_bpf2bpf_common() local 81 info_len = sizeof(prog_info); in test_fexit_bpf2bpf_common() 82 err = bpf_prog_get_info_by_fd(tgt_fd, &prog_info, &info_len); in test_fexit_bpf2bpf_common() 137 info_len = sizeof(link_info); in test_fexit_bpf2bpf_common() 140 &link_info, &info_len); in test_fexit_bpf2bpf_common() 416 __u32 info_len = sizeof(info); in find_prog_btf_id() local 420 ret = bpf_prog_get_info_by_fd(attach_prog_fd, &info, &info_len); in find_prog_btf_id() 461 __u32 info_len = sizeof(info); in test_fentry_to_cgroup_bpf() local 490 ASSERT_OK(bpf_prog_get_info_by_fd(fentry_fd, &info, &info_len), in test_fentry_to_cgroup_bpf()
|
D | tp_attach_query.c | 8 __u32 duration = 0, info_len, saved_prog_ids[num_progs]; in serial_test_tp_attach_query() local 52 info_len = sizeof(prog_info); in serial_test_tp_attach_query() 54 &info_len); in serial_test_tp_attach_query()
|
D | btf_map_in_map.c | 13 __u32 info_len = sizeof(info); in bpf_map_id() local 16 memset(&info, 0, info_len); in bpf_map_id() 17 err = bpf_map_get_info_by_fd(bpf_map__fd(map), &info, &info_len); in bpf_map_id()
|
D | prog_run_opts.c | 12 __u32 info_len = sizeof(info); in check_run_cnt() local 15 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in check_run_cnt()
|
D | perf_link.c | 34 __u32 info_len = sizeof(info); in serial_test_perf_link() local 57 err = bpf_link_get_info_by_fd(link_fd, &info, &info_len); in serial_test_perf_link()
|
/linux-6.6.21/tools/perf/util/ |
D | bpf-utils.c | 115 __u32 info_len = sizeof(info); in get_bpf_prog_info_linear() local 124 err = bpf_obj_get_info_by_fd(fd, &info, &info_len); in get_bpf_prog_info_linear() 139 if (info_len < desc->array_offset + sizeof(__u32) || in get_bpf_prog_info_linear() 140 info_len < desc->count_offset + sizeof(__u32) || in get_bpf_prog_info_linear() 141 (desc->size_offset > 0 && info_len < (__u32)desc->size_offset)) in get_bpf_prog_info_linear() 186 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in get_bpf_prog_info_linear() 216 info_linear->info_len = sizeof(struct bpf_prog_info); in get_bpf_prog_info_linear()
|
D | bpf-utils.h | 57 __u32 info_len; member
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | struct_ops.c | 131 struct bpf_map_info *info, __u32 info_len) in get_next_struct_ops_map() argument 154 err = bpf_map_get_info_by_fd(fd, info, &info_len); in get_next_struct_ops_map() 191 __u32 info_len; in do_search() local 194 info = map_info_alloc(&info_len); in do_search() 202 while ((err = get_next_struct_ops_map(name, &fd, info, info_len)) == 1) { in do_search() 241 __u32 info_len; in do_one_id() local 259 info = map_info_alloc(&info_len); in do_one_id() 265 if (bpf_map_get_info_by_fd(fd, info, &info_len)) { in do_one_id() 497 __u32 info_len = sizeof(info); in do_register() local 546 &info_len)) { in do_register()
|
/linux-6.6.21/fs/notify/fanotify/ |
D | fanotify_user.c | 130 int info_len = fh_len; in fanotify_fid_info_len() local 133 info_len += name_len + 1; in fanotify_fid_info_len() 135 return roundup(FANOTIFY_FID_INFO_HDR_LEN + info_len, in fanotify_fid_info_len() 145 int info_len = 0; in fanotify_dir_name_info_len() local 148 info_len += fanotify_fid_info_len(dir_fh_len, in fanotify_dir_name_info_len() 151 info_len += fanotify_fid_info_len(dir2_fh_len, in fanotify_dir_name_info_len() 154 return info_len; in fanotify_dir_name_info_len() 287 size_t info_len, in process_access_response_info() argument 290 if (info_len != sizeof(*friar)) in process_access_response_info() 303 return info_len; in process_access_response_info() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | xdp_synproxy.c | 191 __u32 info_len = sizeof(info); in syncookie_attach() local 220 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in syncookie_attach() 276 __u32 info_len; in syncookie_open_bpf_maps() local 294 info_len = sizeof(prog_info); in syncookie_open_bpf_maps() 296 err = bpf_prog_get_info_by_fd(prog_fd, &prog_info, &info_len); in syncookie_open_bpf_maps() 321 info_len = sizeof(map_info); in syncookie_open_bpf_maps() 322 err = bpf_map_get_info_by_fd(map_fd, &map_info, &info_len); in syncookie_open_bpf_maps()
|
D | test_skb_cgroup_id_user.c | 82 __u32 info_len = sizeof(info); in get_map_fd_by_prog_id() local 96 if (bpf_prog_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
|
/linux-6.6.21/samples/bpf/ |
D | xdp_fwd_user.c | 55 __u32 info_len, curr_prog_id; in do_detach() local 71 info_len = sizeof(prog_info); in do_detach() 79 err = bpf_prog_get_info_by_fd(prog_fd, &prog_info, &info_len); in do_detach()
|
D | xdp_adjust_tail_user.c | 87 __u32 info_len = sizeof(info); in main() local 187 err = bpf_prog_get_info_by_fd(prog_fd, &info, &info_len); in main()
|
D | test_map_in_map_user.c | 38 uint32_t info_len = sizeof(info); in check_map_id() local 41 ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
|
/linux-6.6.21/tools/lib/bpf/ |
D | bpf.h | 483 LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len); 500 LIBBPF_API int bpf_prog_get_info_by_fd(int prog_fd, struct bpf_prog_info *info, __u32 *info_len); 517 LIBBPF_API int bpf_map_get_info_by_fd(int map_fd, struct bpf_map_info *info, __u32 *info_len); 534 LIBBPF_API int bpf_btf_get_info_by_fd(int btf_fd, struct bpf_btf_info *info, __u32 *info_len); 551 LIBBPF_API int bpf_link_get_info_by_fd(int link_fd, struct bpf_link_info *info, __u32 *info_len);
|
D | bpf.c | 209 __u64 info_len = (__u64)actual_rec_size * cnt; in alloc_zero_tailing_info() local 213 info = malloc(info_len); in alloc_zero_tailing_info() 1116 int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len) in bpf_obj_get_info_by_fd() argument 1124 attr.info.info_len = *info_len; in bpf_obj_get_info_by_fd() 1129 *info_len = attr.info.info_len; in bpf_obj_get_info_by_fd() 1133 int bpf_prog_get_info_by_fd(int prog_fd, struct bpf_prog_info *info, __u32 *info_len) in bpf_prog_get_info_by_fd() argument 1135 return bpf_obj_get_info_by_fd(prog_fd, info, info_len); in bpf_prog_get_info_by_fd() 1138 int bpf_map_get_info_by_fd(int map_fd, struct bpf_map_info *info, __u32 *info_len) in bpf_map_get_info_by_fd() argument 1140 return bpf_obj_get_info_by_fd(map_fd, info, info_len); in bpf_map_get_info_by_fd() 1143 int bpf_btf_get_info_by_fd(int btf_fd, struct bpf_btf_info *info, __u32 *info_len) in bpf_btf_get_info_by_fd() argument [all …]
|
/linux-6.6.21/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_reqmgr.c | 163 u32 dlen, align_dlen, info_len; in info_create() local 180 info_len = ALIGN(sizeof(*info), align); in info_create() 181 total_mem_len = align_dlen + info_len + sizeof(union otx2_cpt_res_s); in info_create() 188 info->in_buffer = (u8 *)info + info_len; in info_create() 209 info->dma_len = total_mem_len - info_len; in info_create()
|
/linux-6.6.21/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_reqmgr.c | 173 u32 dlen, align_dlen, info_len, rlen; in setup_sgio_list() local 192 info_len = ALIGN(sizeof(*info), align); in setup_sgio_list() 194 total_mem_len = align_dlen + info_len + rlen + COMPLETION_CODE_SIZE; in setup_sgio_list() 203 info->in_buffer = (u8 *)info + info_len; in setup_sgio_list() 223 info->dma_len = total_mem_len - info_len; in setup_sgio_list()
|
/linux-6.6.21/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge_mcp_gen_header.h | 55 unsigned info_len; member
|
/linux-6.6.21/tools/testing/selftests/bpf/map_tests/ |
D | map_in_map_batch_ops.c | 18 uint32_t info_len = sizeof(map_info); in get_map_id_from_fd() local 21 ret = bpf_map_get_info_by_fd(map_fd, &map_info, &info_len); in get_map_id_from_fd()
|
/linux-6.6.21/kernel/bpf/ |
D | syscall.c | 4317 u32 info_len = attr->info.info_len; in bpf_prog_get_info_by_fd() local 4323 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(info), info_len); in bpf_prog_get_info_by_fd() 4326 info_len = min_t(u32, sizeof(info), info_len); in bpf_prog_get_info_by_fd() 4329 if (copy_from_user(&info, uinfo, info_len)) in bpf_prog_get_info_by_fd() 4591 if (copy_to_user(uinfo, &info, info_len) || in bpf_prog_get_info_by_fd() 4592 put_user(info_len, &uattr->info.info_len)) in bpf_prog_get_info_by_fd() 4605 u32 info_len = attr->info.info_len; in bpf_map_get_info_by_fd() local 4608 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(info), info_len); in bpf_map_get_info_by_fd() 4611 info_len = min_t(u32, sizeof(info), info_len); in bpf_map_get_info_by_fd() 4636 if (copy_to_user(uinfo, &info, info_len) || in bpf_map_get_info_by_fd() [all …]
|