Home
last modified time | relevance | path

Searched refs:stack_map (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_map_ops.c20 } stack_map SEC(".maps");
72 err = bpf_map_push_elem(&stack_map, &val, 0); in map_push()
85 err = bpf_map_pop_elem(&stack_map, &val); in map_pop()
98 err = bpf_map_peek_elem(&stack_map, &val); in map_peek()
/linux-6.12.1/samples/bpf/
Dtrace_event_user.c105 int error = 1, fd = map_fd[0], stack_map = map_fd[1]; in print_stacks() local
121 while (bpf_map_get_next_key(stack_map, &stackid, &next_id) == 0) { in print_stacks()
122 bpf_map_delete_elem(stack_map, &next_id); in print_stacks()