Searched refs:fd_array (Results 1 - 15 of 15) sorted by relevance

/linux-master/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]);
140 close(fd_array[i][j]);
/linux-master/tools/lib/bpf/
H A Dbpf_gen_internal.h50 int fd_array; member in struct:bpf_gen
H A Dskel_internal.h311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array);
336 attr.fd_array = (long) &map_fd;
H A Dgen_loader.c47 return gen->fd_array + index * sizeof(int);
118 gen->fd_array = add_data(gen, NULL, MAX_FD_ARRAY_SZ * sizeof(int));
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);
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 */
706 /* load fd_array slot pointer */
992 /* populate union bpf_attr fd_array with a pointer to data where map_fds are saved */
993 emit_rel_store(gen, attr_field(prog_load_attr, fd_array), ge
[all...]
H A Dbpf.h87 const int *fd_array; member in struct:bpf_prog_load_opts
H A Dbpf.c313 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL));
H A Dlibbpf.c595 * 0 for vmlinux BTF, index in obj->fd_array for module
697 int *fd_array; member in struct:bpf_object
7362 load_attr.fd_array = obj->fd_array;
8166 /* set index for module BTF fd in fd_array, if unset */
8178 ret = libbpf_ensure_mem((void **)&obj->fd_array, &obj->fd_array_cap, sizeof(int),
8184 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd;
8417 /* clean up fd_array */
8418 zfree(&obj->fd_array);
/linux-master/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-master/include/linux/
H A Dfdtable.h67 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member in struct:files_struct
H A Dbpf_verifier.h731 bpfptr_t fd_array; member in struct:bpf_verifier_env
/linux-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c951 /* We need the fd to stay open so it can be used in fd_array.
972 static void fixup_prog_kfuncs(struct bpf_insn *prog, int *fd_array, argument
997 /* We put bpf_testmod module fd into fd_array
1000 *fd_array = btf__fd(testmod_btf);
1012 struct bpf_insn *prog, int *map_fds, int *fd_array)
1237 fixup_prog_kfuncs(prog, fd_array, test->fixup_kfunc_btf_id);
1523 int fd_array[2] = { -1, -1 }; local
1544 do_test_fixup(test, prog_type, prog, map_fds, &fd_array[1]);
1578 if (fd_array[1] != -1)
1579 opts.fd_array
1011 do_test_fixup(struct bpf_test *test, enum bpf_prog_type prog_type, struct bpf_insn *prog, int *map_fds, int *fd_array) argument
[all...]
/linux-master/fs/
H A Dfile.c339 new_fdt->fd = &newf->fd_array[0];
473 .fd = &init_files.fd_array[0],
/linux-master/include/uapi/linux/
H A Dbpf.h1556 __aligned_u64 fd_array; /* array of FDs */ member in struct:bpf_attr::__anon2593
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1556 __aligned_u64 fd_array; /* array of FDs */ member in struct:bpf_attr::__anon3134
/linux-master/kernel/bpf/
H A Dverifier.c2577 /* Sorted by func_id (BTF ID) and offset (fd_array offset) during
2654 if (bpfptr_is_null(env->fd_array)) {
2655 verbose(env, "kfunc offset > 0 without fd_array is invalid\n");
2659 if (copy_from_bpfptr_offset(&btf_fd, env->fd_array,
2710 * of fd index into fd_array, interpreted as u16.
18275 if (bpfptr_is_null(env->fd_array)) {
18276 verbose(env, "fd_idx without fd_array is invalid\n");
18279 if (copy_from_bpfptr_offset(&fd, env->fd_array,
21194 env->fd_array = make_bpfptr(attr->fd_array, uatt
[all...]

Completed in 720 milliseconds