Home
last modified time | relevance | path

Searched refs:info_len (Results 1 – 25 of 53) sorted by relevance

123

/linux/tools/testing/selftests/bpf/prog_tests/
A Dbpf_obj_id.c81 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 Dflow_dissector_reattach.c60 __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 Denable_stats.c10 __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 Dfexit_bpf2bpf.c61 __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 Dbtf_map_in_map.c13 __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 Dtp_attach_query.c8 __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 Dperf_link.c34 __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 Dprog_run_xattr.c12 __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 Dbtf.c4201 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 Dstruct_ops.c133 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 Dbpf-utils.c115 __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 Dbpf-utils.h57 __u32 info_len; member
/linux/fs/notify/fanotify/
A Dfanotify_user.c123 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 Dtesting_helpers.c70 __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 Dtest_skb_cgroup_id_user.c83 __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 Dtest_tcp_check_syncookie_user.c84 __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 Diterators.c23 __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 Dxdp1_user.c86 __u32 info_len = sizeof(info); in main() local
151 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main()
A Dxdp_adjust_tail_user.c91 __u32 info_len = sizeof(info); in main() local
181 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main()
A Dxdp_sample_pkts_user.c30 __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 Dtest_map_in_map_user.c37 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 Dotx2_cptvf_reqmgr.c163 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 Dsyscall.c3619 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 Dotx_cptvf_reqmgr.c173 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 Dmyri10ge_mcp_gen_header.h55 unsigned info_len; member

Completed in 59 milliseconds

123