Lines Matching refs:data_fd
232 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local
332 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
333 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_count()
337 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_count()
347 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
348 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
353 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_count()
364 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
365 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
370 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_count()
413 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
451 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
452 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_4()
472 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
482 err = bpf_map_update_elem(data_fd, &zero, &i, BPF_ANY); in test_tailcall_4()
503 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
541 data_fd = bpf_map__fd(data_map); in test_tailcall_5()
542 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_5()
562 err = bpf_map_update_elem(data_fd, &zero, &key[i], BPF_ANY); in test_tailcall_5()
572 err = bpf_map_update_elem(data_fd, &zero, &key[i], BPF_ANY); in test_tailcall_5()
677 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local
730 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_2()
731 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_bpf2bpf_2()
735 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_2()
851 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_bpf2bpf_4() local
904 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_4()
905 if (CHECK_FAIL(data_fd < 0)) in test_tailcall_bpf2bpf_4()
911 err = bpf_map_update_elem(data_fd, &i, &val, BPF_ANY); in test_tailcall_bpf2bpf_4()
920 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_4()
936 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_6() local
968 data_fd = bpf_map__fd(obj->maps.bss); in test_tailcall_bpf2bpf_6()
969 if (!ASSERT_GE(data_fd, 0, "bss map fd")) in test_tailcall_bpf2bpf_6()
973 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_6()
1015 int err, map_fd, prog_fd, data_fd, i, val; in test_tailcall_bpf2bpf_fentry_entry() local
1084 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_fentry_entry()
1085 if (!ASSERT_FALSE(data_fd < 0, "find tailcall.bss map fd")) in test_tailcall_bpf2bpf_fentry_entry()
1089 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_fentry_entry()
1098 data_fd = bpf_map__fd(data_map); in test_tailcall_bpf2bpf_fentry_entry()
1099 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_bpf2bpf_fentry_entry()
1104 err = bpf_map_lookup_elem(data_fd, &i, &val); in test_tailcall_bpf2bpf_fentry_entry()