| /external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
| D | lookup_and_delete.c | 13 static int fill_values(int map_fd) in fill_values() 27 static int fill_values_percpu(int map_fd) in fill_values_percpu() 45 int *map_fd) in setup_prog() 102 int map_fd, err; in test_lookup_and_delete_hash() local 137 int map_fd, err, i; in test_lookup_and_delete_percpu_hash() local 176 int map_fd, err; in test_lookup_and_delete_lru_hash() local 221 int map_fd, err, i, cpucnt = 0; in test_lookup_and_delete_lru_percpu_hash() local
|
| D | tailcalls.c | 11 int err, map_fd, prog_fd, main_fd, i, j; in test_tailcall_1() local 149 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_2() local 224 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local 318 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local 406 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local 494 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_1() local 578 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local 656 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_3() local 752 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_bpf2bpf_4() local
|
| D | map_init.c | 20 static int map_populate(int map_fd, int num) in map_populate() 39 int *map_fd, int populate) in setup() 133 int map_fd, err; in test_pcpu_map_init() local 173 int map_fd, err; in test_pcpu_lru_map_init() local
|
| D | global_data.c | 7 int i, err, map_fd; in test_global_data_number() local 42 int i, err, map_fd; in test_global_data_string() local 77 int i, err, map_fd; in test_global_data_struct() local 105 int err = -ENOMEM, map_fd, zero = 0; in test_global_data_rdonly() local
|
| D | test_bprm_opts.c | 24 static int update_storage(int map_fd, int secureexec) in update_storage() 40 static int run_set_secureexec(int map_fd, int secureexec) in run_set_secureexec()
|
| D | map_lock.c | 20 int err, map_fd = *(u32 *) arg; in parallel_map_access() local 50 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
|
| D | tcp_rtt.c | 47 static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, in verify_sk() 98 int map_fd; in run_test() local
|
| D | bpf_iter.c | 595 int err, i, len, map_fd, iter_fd; in test_bpf_hash_map() local 690 int err, i, j, len, map_fd, iter_fd; in test_bpf_percpu_hash_map() local 782 int err, i, map_fd, iter_fd; in test_bpf_array_map() local 867 int err, i, j, map_fd, iter_fd; in test_bpf_percpu_array_map() local 944 int err, len, map_fd, iter_fd; in test_bpf_sk_storage_delete() local 1008 int err, map_fd, val = -1; in test_bpf_sk_storage_get() local 1054 int err, i, len, map_fd, iter_fd, num_sockets; in test_bpf_sk_storage_map() local
|
| D | legacy_printk.c | 9 int err, zero = 0, my_pid = getpid(), res, map_fd; in execute_one_variant() local
|
| D | cg_storage_multi.c | 26 int map_fd; in assert_storage() local 43 int map_fd; in assert_storage_noexist() local
|
| D | xdp_cpumap_attach.c | 18 int err, prog_fd, map_fd; in serial_test_xdp_cpumap_attach() local
|
| D | global_data_init.c | 7 int err = -ENOMEM, map_fd, zero = 0; in test_global_data_init() local
|
| D | load_bytes_relative.c | 12 int server_fd, cgroup_fd, prog_fd, map_fd, client_fd; in test_load_bytes_relative() local
|
| D | netcnt.c | 15 int map_fd, percpu_map_fd; in serial_test_netcnt() local
|
| D | xdp_devmap_attach.c | 19 int err, dm_fd, map_fd; in test_xdp_with_devmap_helpers() local
|
| /external/linux-kselftest/tools/testing/selftests/bpf/map_tests/ |
| D | sk_storage_map.c | 144 int btf_fd, map_fd; in create_sk_storage_map() local 166 int i, map_fd, err, *sk_fds; in insert_close_thread() local 225 int i, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_free() local 283 int map_fd = READ_ONCE(sk_storage_map); in update_thread() local 307 int map_fd = READ_ONCE(sk_storage_map); in delete_thread() local 331 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() local 463 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local
|
| D | lpm_trie_map_batch_ops.c | 21 static void map_batch_update(int map_fd, __u32 max_entries, in map_batch_update() 69 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
|
| D | array_map_batch_ops.c | 14 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() 71 int map_fd, *keys, *visited; in __test_map_lookup_and_update_batch() local
|
| D | htab_map_batch_ops.c | 13 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() 80 int map_fd, *keys, *visited, key; in __test_map_lookup_and_delete_batch() local
|
| /external/bcc/libbpf-tools/ |
| D | map_helpers.c | 14 dump_hash_iter(int map_fd, void *keys, __u32 key_size, in dump_hash_iter() 49 dump_hash_batch(int map_fd, void *keys, __u32 key_size, in dump_hash_batch() 73 int dump_hash(int map_fd, in dump_hash()
|
| /external/linux-kselftest/tools/testing/selftests/bpf/ |
| D | test_lpm_map.c | 431 int map_fd; in test_lpm_delete() local 545 int map_fd; in test_lpm_get_next_key() local 698 int map_fd; member 743 static void setup_lpm_mt_test_info(struct lpm_mt_test_info *info, int map_fd) in setup_lpm_mt_test_info() 763 int i, map_fd; in test_lpm_multi_thread() local
|
| D | test_skb_cgroup_id_user.c | 86 int map_fd = -1; in get_map_fd_by_prog_id() local 121 int map_fd; in check_ancestor_cgroup_ids() local
|
| /external/libbpf/src/ |
| D | ringbuf.c | 31 int map_fd; member 55 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add() 161 ring_buffer__new(int map_fd, ring_buffer_sample_fn sample_cb, void *ctx, in ring_buffer__new()
|
| /external/ltp/testcases/kernel/syscalls/bpf/ |
| D | bpf_common.h | 31 #define BPF_MAP_ARRAY_STX(map_fd, array_indx, reg_to_save)\ argument
|
| /external/bcc/examples/networking/ |
| D | sockmap.py | 114 map_fd = lib.bpf_table_fd(bpf.module, b"sock_hash") variable
|