/linux-master/fs/ |
H A D | file.c | 339 new_fdt->fd = &newf->fd_array[0]; 473 .fd = &init_files.fd_array[0],
|
/linux-master/include/linux/ |
H A D | bpf_verifier.h | 731 bpfptr_t fd_array; member in struct:bpf_verifier_env
|
H A D | fdtable.h | 67 struct file __rcu * fd_array[NR_OPEN_DEFAULT]; member in struct:files_struct
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 1556 __aligned_u64 fd_array; /* array of FDs */ member in struct:bpf_attr::__anon2593
|
/linux-master/kernel/bpf/ |
H A D | verifier.c | 2577 /* 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, 21223 env->fd_array = make_bpfptr(attr->fd_array, uatt [all...] |
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 1556 __aligned_u64 fd_array; /* array of FDs */ member in struct:bpf_attr::__anon3134
|
/linux-master/tools/lib/bpf/ |
H A D | bpf.c | 313 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL));
|
H A D | bpf.h | 87 const int *fd_array; member in struct:bpf_prog_load_opts
|
H A D | bpf_gen_internal.h | 50 int fd_array; member in struct:bpf_gen
|
H A D | gen_loader.c | 47 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 D | libbpf.c | 595 * 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);
|
H A D | skel_internal.h | 311 const size_t prog_load_attr_sz = offsetofend(union bpf_attr, fd_array); 336 attr.fd_array = (long) &map_fd;
|
/linux-master/tools/perf/tests/shell/ |
H A D | test_intel_pt.sh | 185 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/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 951 /* 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/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]); 140 close(fd_array[i][j]);
|