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: 6
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312

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

Upstream branch: dd948aa
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

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

Upstream branch: 5730dac
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

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

Upstream branch: 5730dac
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

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

Upstream branch: 9b5c111
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

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

Upstream branch: 1193c46
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

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

Upstream branch: 105eb5d
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312
version: 6

Tao Chen added 3 commits September 25, 2025 15:58
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]>
The loading method of the stacktrace_map test case looks too outdated,
refactor it with skeleton, and we can use global avariable feature in
the next patch.

Signed-off-by: Tao Chen <[email protected]>
Add tests for stacktrace map lookup and delete:
1. use bpf_map_lookup_and_delete_elem to lookup and delete the target
   stack_id,
2. lookup the deleted stack_id again to double check.

Signed-off-by: Tao Chen <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312 irrelevant now. Closing PR.

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