Searched refs:fd_array_cnt (Results 1 – 8 of 8) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fd_array.c | 98 static int __load_test_prog(int map_fd, const int *fd_array, int fd_array_cnt) in __load_test_prog() argument 113 opts.fd_array_cnt = fd_array_cnt; in __load_test_prog() 118 static int load_test_prog(const int *fd_array, int fd_array_cnt) in load_test_prog() argument 127 ret = __load_test_prog(map_fd, fd_array, fd_array_cnt); in load_test_prog()
|
| H A D | bpf_insn_array.c | 16 static int prog_load(struct bpf_insn *insns, __u32 insn_cnt, int *fd_array, __u32 fd_array_cnt) in prog_load() argument 21 opts.fd_array_cnt = fd_array_cnt; in prog_load()
|
| /linux/tools/lib/bpf/ |
| H A D | bpf.h | 115 __u32 fd_array_cnt; member 118 #define bpf_prog_load_opts__last_field fd_array_cnt
|
| H A D | bpf.c | 316 attr.fd_array_cnt = OPTS_GET(opts, fd_array_cnt, 0); in bpf_prog_load()
|
| H A D | libbpf.c | 754 size_t fd_array_cnt; member 8661 if (obj->fd_array_cnt == INT16_MAX) { in bpf_object__resolve_ksym_func_btf_id() 8667 if (!obj->fd_array_cnt) in bpf_object__resolve_ksym_func_btf_id() 8668 obj->fd_array_cnt = 1; in bpf_object__resolve_ksym_func_btf_id() 8671 obj->fd_array_cnt + 1); in bpf_object__resolve_ksym_func_btf_id() 8674 mod_btf->fd_array_idx = obj->fd_array_cnt; in bpf_object__resolve_ksym_func_btf_id() 8676 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id()
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 1630 /* The fd_array_cnt can be used to pass the length of the 1636 * then the fd_array[0,...,fd_array_cnt-1] is expected to be 1639 __u32 fd_array_cnt; 1617 __u32 fd_array_cnt; global() member
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 1630 /* The fd_array_cnt can be used to pass the length of the 1636 * then the fd_array[0,...,fd_array_cnt-1] is expected to be 1639 __u32 fd_array_cnt; 1617 __u32 fd_array_cnt; global() member
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 25507 if (!attr->fd_array_cnt) in process_fd_array() 25511 if (attr->fd_array_cnt >= (U32_MAX / size)) { in process_fd_array() 25512 verbose(env, "fd_array_cnt is too big (%u)\n", attr->fd_array_cnt); in process_fd_array() 25516 for (i = 0; i < attr->fd_array_cnt; i++) { in process_fd_array()
|