Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: bpf: Add lookup_and_delete_elem for BPF_MAP_STACK_TRACE
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004525

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 5612ea8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004525
version: 3

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 5a427fd
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1004525
version: 3

Tao Chen added 2 commits September 20, 2025 15:54
The stacktrace map can be easily full, which will lead to failure in
obtaining the stack. In addition to increasing the size of the map,
another solution is to delete the stack_id after looking it up from
the user, so extend the existing bpf_map_lookup_and_delete_elem()
functionality to stacktrace map types.

Signed-off-by: Tao Chen <[email protected]>
...
test_stacktrace_map:PASS:compare_stack_ips stackmap vs. stack_amap 0 nsec
test_stacktrace_map:PASS:stack_key_map lookup 0 nsec
test_stacktrace_map:PASS:stackmap lookup and detele 0 nsec
test_stacktrace_map:PASS:stackmap lookup deleted stack_id 0 nsec
 #397     stacktrace_map:OK
...

Signed-off-by: Tao Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant