/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | bpf_obj_id.c | 81 bzero(&map_infos[i], info_len); in serial_test_bpf_obj_id() 83 &info_len); 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() 161 bzero(&link_infos[i], info_len); in serial_test_bpf_obj_id() 165 &link_infos[i], &info_len); in serial_test_bpf_obj_id() 195 info_len = sizeof(prog_info); in serial_test_bpf_obj_id() 226 info_len = sizeof(prog_info); in serial_test_bpf_obj_id() 256 info_len = sizeof(map_info); in serial_test_bpf_obj_id() 304 info_len = sizeof(link_info); in serial_test_bpf_obj_id() [all …]
|
A D | flow_dissector_reattach.c | 60 __u32 info_len = sizeof(info); in query_prog_id() local 63 err = bpf_obj_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_obj_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() 529 CHECK_FAIL(info_len != sizeof(info)); in test_link_get_info() 548 info_len = sizeof(info); in test_link_get_info() [all …]
|
A 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_obj_get_info_by_fd(prog_fd, &info, &info_len); in test_enable_stats()
|
A D | fexit_bpf2bpf.c | 61 __u32 retval, tgt_prog_id, info_len; in test_fexit_bpf2bpf_common() local 73 info_len = sizeof(prog_info); in test_fexit_bpf2bpf_common() 74 err = bpf_obj_get_info_by_fd(tgt_fd, &prog_info, &info_len); in test_fexit_bpf2bpf_common() 120 info_len = sizeof(link_info); in test_fexit_bpf2bpf_common() 123 &link_info, &info_len); in test_fexit_bpf2bpf_common()
|
A 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_obj_get_info_by_fd(bpf_map__fd(map), &info, &info_len); in bpf_map_id()
|
A D | tp_attach_query.c | 8 __u32 duration = 0, info_len, saved_prog_ids[num_progs]; in serial_test_tp_attach_query() local 47 info_len = sizeof(prog_info); in serial_test_tp_attach_query() 48 err = bpf_obj_get_info_by_fd(prog_fd[i], &prog_info, &info_len); in serial_test_tp_attach_query()
|
A D | perf_link.c | 34 __u32 info_len = sizeof(info); in serial_test_perf_link() local 57 err = bpf_obj_get_info_by_fd(link_fd, &info, &info_len); in serial_test_perf_link()
|
A D | prog_run_xattr.c | 12 __u32 info_len = sizeof(info); in check_run_cnt() local 15 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in check_run_cnt()
|
A D | btf.c | 4201 uint32_t info_len; in test_big_btf_info() local 4235 info_len = sizeof(info_garbage); in test_big_btf_info() 4284 uint32_t info_len; in test_btf_id() local 4317 info_len = sizeof(info[0]); in test_btf_id() 4358 info_len = sizeof(map_info); in test_btf_id() 4417 uint32_t info_len; in do_test_get_info() local 4459 info_len = sizeof(info); in do_test_get_info() 4520 __u32 info_len, rec_size; in do_test_file() local 4579 info_len = sizeof(struct bpf_prog_info); in do_test_file() 6228 __u32 info_len, rec_size, i; in test_get_finfo() local [all …]
|
/linux/tools/bpf/bpftool/ |
A D | struct_ops.c | 133 struct bpf_map_info *info, __u32 info_len) in get_next_struct_ops_map() argument 156 err = bpf_obj_get_info_by_fd(fd, info, &info_len); in get_next_struct_ops_map() 193 __u32 info_len; in do_search() local 196 info = map_info_alloc(&info_len); in do_search() 204 while ((err = get_next_struct_ops_map(name, &fd, info, info_len)) == 1) { in do_search() 243 __u32 info_len; in do_one_id() local 261 info = map_info_alloc(&info_len); in do_one_id() 267 if (bpf_obj_get_info_by_fd(fd, info, &info_len)) { in do_one_id() 485 __u32 info_len = sizeof(info); in do_register() local 532 &info_len)) in do_register()
|
/linux/tools/perf/util/ |
A 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() 187 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in get_bpf_prog_info_linear() 217 info_linear->info_len = sizeof(struct bpf_prog_info); in get_bpf_prog_info_linear()
|
A D | bpf-utils.h | 57 __u32 info_len; member
|
/linux/fs/notify/fanotify/ |
A D | fanotify_user.c | 123 int info_len = fh_len; in fanotify_fid_info_len() local 126 info_len += name_len + 1; in fanotify_fid_info_len() 128 return roundup(FANOTIFY_FID_INFO_HDR_LEN + info_len, in fanotify_fid_info_len() 364 size_t len = info_len; in copy_fid_info_to_user() 367 __func__, fh_len, name_len, info_len, count); in copy_fid_info_to_user() 449 return info_len; in copy_fid_info_to_user() 457 size_t info_len = FANOTIFY_PIDFD_INFO_HDR_LEN; in copy_pidfd_info_to_user() local 459 if (WARN_ON_ONCE(info_len > count)) in copy_pidfd_info_to_user() 463 info.hdr.len = info_len; in copy_pidfd_info_to_user() 466 if (copy_to_user(buf, &info, info_len)) in copy_pidfd_info_to_user() [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | testing_helpers.c | 70 __u32 info_len = sizeof(*info); in link_info_prog_id() local 74 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), info, &info_len); in link_info_prog_id()
|
A D | test_skb_cgroup_id_user.c | 83 __u32 info_len = sizeof(info); in get_map_fd_by_prog_id() local 97 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
|
A D | test_tcp_check_syncookie_user.c | 84 __u32 info_len = sizeof(info); in get_map_fd_by_prog_id() local 98 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
|
/linux/kernel/bpf/preload/iterators/ |
A D | iterators.c | 23 __u32 info_len = sizeof(info); in send_link_to_kernel() local 26 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &info, &info_len); in send_link_to_kernel()
|
/linux/samples/bpf/ |
A D | xdp1_user.c | 86 __u32 info_len = sizeof(info); in main() local 151 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main()
|
A D | xdp_adjust_tail_user.c | 91 __u32 info_len = sizeof(info); in main() local 181 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main()
|
A D | xdp_sample_pkts_user.c | 30 __u32 info_len = sizeof(info); in do_attach() local 39 err = bpf_obj_get_info_by_fd(fd, &info, &info_len); in do_attach()
|
A D | test_map_in_map_user.c | 37 uint32_t info_len = sizeof(info); in check_map_id() local 40 ret = bpf_obj_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
|
/linux/drivers/crypto/marvell/octeontx2/ |
A 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/kernel/bpf/ |
A D | syscall.c | 3619 u32 info_len = attr->info.info_len; in bpf_prog_get_info_by_fd() local 3628 info_len = min_t(u32, sizeof(info), info_len); in bpf_prog_get_info_by_fd() 3631 if (copy_from_user(&info, uinfo, info_len)) in bpf_prog_get_info_by_fd() 3890 put_user(info_len, &uattr->info.info_len)) in bpf_prog_get_info_by_fd() 3903 u32 info_len = attr->info.info_len; in bpf_map_get_info_by_fd() local 3909 info_len = min_t(u32, sizeof(info), info_len); in bpf_map_get_info_by_fd() 3935 put_user(info_len, &uattr->info.info_len)) in bpf_map_get_info_by_fd() 3947 u32 info_len = attr->info.info_len; in bpf_btf_get_info_by_fd() local 3964 u32 info_len = attr->info.info_len; in bpf_link_get_info_by_fd() local 3970 info_len = min_t(u32, sizeof(info), info_len); in bpf_link_get_info_by_fd() [all …]
|
/linux/drivers/crypto/marvell/octeontx/ |
A 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/drivers/net/ethernet/myricom/myri10ge/ |
A D | myri10ge_mcp_gen_header.h | 55 unsigned info_len; member
|