Lines Matching refs:err
16 int err; in fill_values() local
19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values()
20 if (!ASSERT_OK(err, "bpf_map_update_elem")) in fill_values()
30 int i, err; in fill_values_percpu() local
36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu()
37 if (!ASSERT_OK(err, "bpf_map_update_elem")) in fill_values_percpu()
48 int err; in setup_prog() local
54 err = bpf_map__set_type(skel->maps.hash_map, map_type); in setup_prog()
55 if (!ASSERT_OK(err, "bpf_map__set_type")) in setup_prog()
58 err = bpf_map__set_max_entries(skel->maps.hash_map, MAX_ENTRIES); in setup_prog()
59 if (!ASSERT_OK(err, "bpf_map__set_max_entries")) in setup_prog()
62 err = test_lookup_and_delete__load(skel); in setup_prog()
63 if (!ASSERT_OK(err, "test_lookup_and_delete__load")) in setup_prog()
81 int err; in trigger_tp() local
87 err = test_lookup_and_delete__attach(skel); in trigger_tp()
88 if (!ASSERT_OK(err, "test_lookup_and_delete__attach")) in trigger_tp()
102 int map_fd, err; in test_lookup_and_delete_hash() local
109 err = fill_values(map_fd); in test_lookup_and_delete_hash()
110 if (!ASSERT_OK(err, "fill_values")) in test_lookup_and_delete_hash()
115 err = bpf_map_lookup_and_delete_elem(map_fd, &key, &value); in test_lookup_and_delete_hash()
116 if (!ASSERT_OK(err, "bpf_map_lookup_and_delete_elem")) in test_lookup_and_delete_hash()
125 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_hash()
126 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_hash()
137 int map_fd, err, i; in test_lookup_and_delete_percpu_hash() local
144 err = fill_values_percpu(map_fd); in test_lookup_and_delete_percpu_hash()
145 if (!ASSERT_OK(err, "fill_values_percpu")) 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()
151 if (!ASSERT_OK(err, "bpf_map_lookup_and_delete_elem")) in test_lookup_and_delete_percpu_hash()
164 err = bpf_map_lookup_elem(map_fd, &key, value); in test_lookup_and_delete_percpu_hash()
165 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_percpu_hash()
176 int map_fd, err; in test_lookup_and_delete_lru_hash() local
183 err = fill_values(map_fd); in test_lookup_and_delete_lru_hash()
184 if (!ASSERT_OK(err, "fill_values")) in test_lookup_and_delete_lru_hash()
189 err = trigger_tp(skel, key, NEW_VALUE); in test_lookup_and_delete_lru_hash()
190 if (!ASSERT_OK(err, "trigger_tp")) 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()
195 if (!ASSERT_OK(err, "bpf_map_lookup_and_delete_elem")) in test_lookup_and_delete_lru_hash()
204 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
205 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_hash()
209 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
210 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_hash()
221 int map_fd, err, i, cpucnt = 0; in test_lookup_and_delete_lru_percpu_hash() local
228 err = fill_values_percpu(map_fd); in test_lookup_and_delete_lru_percpu_hash()
229 if (!ASSERT_OK(err, "fill_values_percpu")) in test_lookup_and_delete_lru_percpu_hash()
234 err = trigger_tp(skel, key, NEW_VALUE); in test_lookup_and_delete_lru_percpu_hash()
235 if (!ASSERT_OK(err, "trigger_tp")) 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()
244 if (!ASSERT_OK(err, "bpf_map_lookup_and_delete_elem")) { 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()
264 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) 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()
269 if (!ASSERT_ERR(err, "bpf_map_lookup_elem")) in test_lookup_and_delete_lru_percpu_hash()