Home
last modified time | relevance | path

Searched refs:fd_array (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dbind_bhash.c28 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()
/linux/tools/perf/tests/shell/
H A Dtest_intel_pt.sh185 fd_array[fd] = fd
195 if (fd in fd_array) {
209 if (fd in fd_array) {
210 if (fd_to in fd_array) {
223 print "Checking " length(fd_array) " fds"
224 for (fd in fd_array) {
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c947 /* We need the fd to stay open so it can be used in fd_array. in btf__load_testmod_btf()
968 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, in kfuncs_cleanup()
993 /* We put bpf_testmod module fd into fd_array in fixup_prog_kfuncs()
996 *fd_array = btf__fd(testmod_btf); in fixup_prog_kfuncs()
1008 struct bpf_insn *prog, int *map_fds, int *fd_array) in fixup_prog_kfuncs()
1233 fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id); in do_test_fixup()
1514 int fd_array[2] = { -1, -1 }; in do_test_single()
1535 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]); in do_test_single()
1569 if (fd_array[1] != -1) in do_test_single()
1570 opts.fd_array in do_test_single()
972 fixup_prog_kfuncs(struct bpf_insn * prog,int * fd_array,struct kfunc_btf_id_pair * fixup_kfunc_btf_id) fixup_prog_kfuncs() argument
1012 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
1518 int fd_array[2] = { -1, -1 }; do_test_single() local
[all...]
/linux/tools/lib/bpf/
H A Dskel_internal.h311 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 Dbpf.h87 const int *fd_array; member
H A Dlibbpf.c724 int *fd_array; member
7510 load_attr.fd_array = obj->fd_array; in bpf_object_load_prog()
8330 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int), in bpf_object__resolve_ksym_func_btf_id()
8336 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id()
8579 zfree(&obj->fd_array); in bpf_object_load()
/linux/Documentation/bpf/
H A Dlinux-notes.rst28 Linux uses an fd_array to store maps associated with a BPF program. Thus,
/linux/fs/
H A Dfile.c384 new_fdt->fd = &newf->fd_array[0]; in dup_fd()
506 .fd = &init_files.fd_array[0],
/linux/include/linux/
H A Dbpf_verifier.h765 bpfptr_t fd_array; member
/linux/include/uapi/linux/
H A Dbpf.h1564 __aligned_u64 fd_array; /* array of FDs */ member
/linux/tools/include/uapi/linux/
H A Dbpf.h1564 __aligned_u64 fd_array; /* array of FDs */ member
/linux/kernel/bpf/
H A Dverifier.c2793 if (bpfptr_is_null(env->fd_array)) { in __find_kfunc_desc_btf()
2798 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array, in __find_kfunc_desc_btf()
19275 if (bpfptr_is_null(env->fd_array)) { in resolve_pseudo_ldimm64()
19279 if (copy_from_bpfptr_offset(&fd, env->fd_array, in resolve_pseudo_ldimm64()
22578 env->fd_array = make_bpfptr(attr->fd_array, uattr.is_kernel); in bpf_check()