Lines Matching refs:map_fd
23 static int map_fd[3]; variable
43 assert(bpf_map_update_elem(map_fd[0], &cpu, &pmu_fd, BPF_ANY) == 0); in check_on_cpu()
46 bpf_map_get_next_key(map_fd[1], &cpu, NULL); in check_on_cpu()
48 if (bpf_map_lookup_elem(map_fd[1], &cpu, &value)) { in check_on_cpu()
56 if (bpf_map_lookup_elem(map_fd[2], &cpu, &value2)) { in check_on_cpu()
66 assert(bpf_map_delete_elem(map_fd[0], &cpu) == 0 || error); in check_on_cpu()
69 assert(bpf_map_delete_elem(map_fd[1], &cpu) == 0 || error); in check_on_cpu()
196 map_fd[0] = bpf_object__find_map_fd_by_name(obj, "counters"); in main()
197 map_fd[1] = bpf_object__find_map_fd_by_name(obj, "values"); in main()
198 map_fd[2] = bpf_object__find_map_fd_by_name(obj, "values2"); in main()
199 if (map_fd[0] < 0 || map_fd[1] < 0 || map_fd[2] < 0) { in main()