-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: Add lookup_and_delete_elem for BPF_MAP_STACK_TRACE #6048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpf: Add lookup_and_delete_elem for BPF_MAP_STACK_TRACE #6048
Conversation
|
Upstream branch: dd948aa |
0a501c6 to
4ca3fcf
Compare
|
Upstream branch: 5730dac |
2349d93 to
f345ca8
Compare
4ca3fcf to
7a03ef1
Compare
|
Upstream branch: 5730dac |
f345ca8 to
8574225
Compare
7a03ef1 to
7f80785
Compare
|
Upstream branch: 9b5c111 |
8574225 to
7ecb167
Compare
7f80785 to
818d5ca
Compare
|
Upstream branch: 1193c46 |
7ecb167 to
eea4a85
Compare
818d5ca to
d3f58a7
Compare
|
Upstream branch: 105eb5d |
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]>
eea4a85 to
0736294
Compare
d3f58a7 to
77743ac
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1006312 irrelevant now. Closing PR. |
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