• Home
  • Raw
  • Download

Lines Matching refs:key

15 	__u64 key, value = START_VALUE;  in fill_values()  local
18 for (key = 1; key < MAX_ENTRIES + 1; key++) { in fill_values()
19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values()
29 __u64 key, value[nr_cpus]; in fill_values_percpu() local
35 for (key = 1; key < MAX_ENTRIES + 1; key++) { in fill_values_percpu()
36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu()
78 static int trigger_tp(struct test_lookup_and_delete *skel, __u64 key, in trigger_tp() argument
84 skel->bss->set_key = key; in trigger_tp()
101 __u64 key, value; in test_lookup_and_delete_hash() local
114 key = 1; in test_lookup_and_delete_hash()
115 err = bpf_map_lookup_and_delete_elem(map_fd, &key, &value); in test_lookup_and_delete_hash()
125 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_hash()
136 __u64 key, val, value[nr_cpus]; in test_lookup_and_delete_percpu_hash() local
149 key = 1; in test_lookup_and_delete_percpu_hash()
150 err = bpf_map_lookup_and_delete_elem(map_fd, &key, value); in test_lookup_and_delete_percpu_hash()
164 err = bpf_map_lookup_elem(map_fd, &key, value); in test_lookup_and_delete_percpu_hash()
175 __u64 key, value; in test_lookup_and_delete_lru_hash() local
188 key = 3; in test_lookup_and_delete_lru_hash()
189 err = trigger_tp(skel, key, NEW_VALUE); in test_lookup_and_delete_lru_hash()
194 err = bpf_map_lookup_and_delete_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
204 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
208 key = 1; in test_lookup_and_delete_lru_hash()
209 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
220 __u64 key, val, value[nr_cpus]; in test_lookup_and_delete_lru_percpu_hash() local
233 key = 3; in test_lookup_and_delete_lru_percpu_hash()
234 err = trigger_tp(skel, key, NEW_VALUE); in test_lookup_and_delete_lru_percpu_hash()
243 err = bpf_map_lookup_and_delete_elem(map_fd, &key, value); in test_lookup_and_delete_lru_percpu_hash()
263 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_percpu_hash()
267 key = 1; in test_lookup_and_delete_lru_percpu_hash()
268 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_percpu_hash()