Lines Matching refs:key
17 __u32 key, num_cpus; in test_hash_map() local
31 key = i; in test_hash_map()
33 err = bpf_map__update_elem(skel->maps.hashmap, &key, sizeof(key), in test_hash_map()
45 key = 1; in test_hash_map()
48 err = bpf_map__update_elem(skel->maps.percpu_map, &key, sizeof(key), in test_hash_map()
62 key = 1; in test_hash_map()
63 err = bpf_map__lookup_elem(skel->maps.hashmap, &key, sizeof(key), &val, sizeof(val), 0); in test_hash_map()
79 __u32 key, num_cpus, max_entries; in test_array_map() local
98 key = i; in test_array_map()
103 err = bpf_map__update_elem(skel->maps.arraymap, &key, sizeof(key), in test_array_map()
115 key = 0; in test_array_map()
118 err = bpf_map__update_elem(skel->maps.percpu_map, &key, sizeof(key), in test_array_map()