/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | bind_bhash.c | 28 static int fd_array[MAX_THREADS][MAX_CONNECTIONS]; variable 114 pthread_create(&tid[i], NULL, setup, fd_array[i]); in main() 140 close(fd_array[i][j]); in main()
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | test_intel_pt.sh | 184 fd_array[fd] = fd 194 if (fd in fd_array) { 208 if (fd in fd_array) { 209 if (fd_to in fd_array) { 222 print "Checking " length(fd_array) " fds" 223 for (fd in fd_array) {
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | bpf_gen_internal.h | 50 int fd_array; member
|
H A D | skel_internal.h | 311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array); in bpf_load_and_run() 336 attr.fd_array = (long) &map_fd; in bpf_load_and_run()
|
H A D | gen_loader.c | 47 return gen->fd_array + index * sizeof(int); in blob_fd_array_off() 118 gen->fd_array = add_data(gen, NULL, MAX_FD_ARRAY_SZ * sizeof(int)); in bpf_gen__init() 175 /* Get index for map_fd/btf_fd slot in reserved fd_array, or in data relative 176 * to start of fd_array. Caller can decide if it is usable or not. 194 return (cur - gen->fd_array) / sizeof(int); in add_kfunc_btf_fd() 662 * share same index in fd_array (such that kfunc_btf_tab has 1 element). 685 /* get index in fd_array to store BTF FD at */ in emit_relo_kfunc_btf() 706 /* load fd_array slot pointer */ in emit_relo_kfunc_btf() 992 /* populate union bpf_attr fd_array with a pointer to data where map_fds are saved */ in bpf_gen__prog_load() 993 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), ge in bpf_gen__prog_load() [all...] |
H A D | bpf.h | 83 const int *fd_array; member
|
H A D | bpf.c | 306 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL)); in bpf_prog_load()
|
H A D | libbpf.c | 579 * 0 for vmlinux BTF, index in obj->fd_array for module 681 int *fd_array; member 6932 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog() 7714 /* set index for module BTF fd in fd_array, if unset */ in bpf_object__resolve_ksym_func_btf_id() 7726 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_ksym_func_btf_id() 7732 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id() 7956 /* clean up fd_array */ in bpf_object_load() 7957 zfree(&obj->fd_array); in bpf_object_load()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 949 /* We need the fd to stay open so it can be used in fd_array. in btf__load_testmod_btf() 970 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, in fixup_prog_kfuncs() argument 995 /* We put bpf_testmod module fd into fd_array in fixup_prog_kfuncs() 998 *fd_array = btf__fd(testmod_btf); in fixup_prog_kfuncs() 1010 struct bpf_insn *prog, int *map_fds, int *fd_array) in do_test_fixup() 1235 fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id); in do_test_fixup() 1564 int fd_array[2] = { -1, -1 }; in do_test_single() local 1578 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]); in do_test_single() 1612 if (fd_array[1] != -1) in do_test_single() 1613 opts.fd_array in do_test_single() 1009 do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, struct bpf_insn *prog, int *map_fds, int *fd_array) do_test_fixup() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | fdtable.h | 67 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fdtable.h | 67 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member
|
H A D | bpf_verifier.h | 662 bpfptr_t fd_array; member
|
/kernel/linux/linux-5.10/fs/ |
H A D | file.c | 339 new_fdt->fd = &newf->fd_array[0]; in dup_fd() 498 .fd = &init_files.fd_array[0],
|
/kernel/linux/linux-6.6/fs/ |
H A D | file.c | 339 new_fdt->fd = &newf->fd_array[0]; in dup_fd() 473 .fd = &init_files.fd_array[0],
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | bpf.h | 1447 __aligned_u64 fd_array; /* array of FDs */ member
|
/kernel/linux/linux-6.6/tools/include/uapi/linux/ |
H A D | bpf.h | 1447 __aligned_u64 fd_array; /* array of FDs */ member
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | verifier.c | 2690 /* Sorted by func_id (BTF ID) and offset (fd_array offset) during 2767 if (bpfptr_is_null(env->fd_array)) { in __find_kfunc_desc_btf() 2768 verbose(env, "kfunc offset > 0 without fd_array is invalid\n"); in __find_kfunc_desc_btf() 2772 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array, in __find_kfunc_desc_btf() 2823 * of fd index into fd_array, interpreted as u16. in find_kfunc_desc_btf() 17636 if (bpfptr_is_null(env->fd_array)) { in resolve_pseudo_ldimm64() 17637 verbose(env, "fd_idx without fd_array is invalid\n"); in resolve_pseudo_ldimm64() 17640 if (copy_from_bpfptr_offset(&fd, env->fd_array, in resolve_pseudo_ldimm64() 20222 env->fd_array = make_bpfptr(attr->fd_array, uatt in bpf_check() [all...] |