Home
last modified time | relevance | path

Searched refs:stackmap_fd (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dstacktrace_build_id.c6 int control_map_fd, stackid_hmap_fd, stackmap_fd, stack_amap_fd; in test_stacktrace_build_id() local
44 stackmap_fd = bpf_find_map(__func__, obj, "stackmap"); in test_stacktrace_build_id()
45 if (CHECK(stackmap_fd < 0, "bpf_find_map stackmap", "err %d errno %d\n", in test_stacktrace_build_id()
66 err = compare_map_keys(stackid_hmap_fd, stackmap_fd); in test_stacktrace_build_id()
71 err = compare_map_keys(stackmap_fd, stackid_hmap_fd); in test_stacktrace_build_id()
82 err = bpf_map_get_next_key(stackmap_fd, NULL, &key); in test_stacktrace_build_id()
90 err = bpf_map_lookup_elem(stackmap_fd, &key, id_offs); in test_stacktrace_build_id()
104 } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); in test_stacktrace_build_id()
124 err = compare_stack_ips(stackmap_fd, stack_amap_fd, stack_trace_len); in test_stacktrace_build_id()
Dstacktrace_map.c6 int control_map_fd, stackid_hmap_fd, stackmap_fd, stack_amap_fd; in test_stacktrace_map() local
36 stackmap_fd = bpf_find_map(__func__, obj, "stackmap"); in test_stacktrace_map()
37 if (CHECK_FAIL(stackmap_fd < 0)) in test_stacktrace_map()
55 err = compare_map_keys(stackid_hmap_fd, stackmap_fd); in test_stacktrace_map()
60 err = compare_map_keys(stackmap_fd, stackid_hmap_fd); in test_stacktrace_map()
66 err = compare_stack_ips(stackmap_fd, stack_amap_fd, stack_trace_len); in test_stacktrace_map()
Dstacktrace_build_id_nmi.c19 int control_map_fd, stackid_hmap_fd, stackmap_fd, stack_amap_fd; in test_stacktrace_build_id_nmi() local
75 stackmap_fd = bpf_find_map(__func__, obj, "stackmap"); in test_stacktrace_build_id_nmi()
76 if (CHECK(stackmap_fd < 0, "bpf_find_map stackmap", "err %d errno %d\n", in test_stacktrace_build_id_nmi()
97 err = compare_map_keys(stackid_hmap_fd, stackmap_fd); in test_stacktrace_build_id_nmi()
102 err = compare_map_keys(stackmap_fd, stackid_hmap_fd); in test_stacktrace_build_id_nmi()
113 err = bpf_map_get_next_key(stackmap_fd, NULL, &key); in test_stacktrace_build_id_nmi()
121 err = bpf_map_lookup_elem(stackmap_fd, &key, id_offs); in test_stacktrace_build_id_nmi()
135 } while (bpf_map_get_next_key(stackmap_fd, &previous_key, &key) == 0); in test_stacktrace_build_id_nmi()
Dstacktrace_map_raw_tp.c7 int control_map_fd, stackid_hmap_fd, stackmap_fd; in test_stacktrace_map_raw_tp() local
36 stackmap_fd = bpf_find_map(__func__, obj, "stackmap"); in test_stacktrace_map_raw_tp()
37 if (CHECK_FAIL(stackmap_fd < 0)) in test_stacktrace_map_raw_tp()
51 err = compare_map_keys(stackid_hmap_fd, stackmap_fd); in test_stacktrace_map_raw_tp()
56 err = compare_map_keys(stackmap_fd, stackid_hmap_fd); in test_stacktrace_map_raw_tp()