-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: Add lookup_and_delete_elem for BPF_MAP_STACK_TRACE #5925
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 #5925
Conversation
|
Upstream branch: f859813 |
ba991b7 to
cf2fd3b
Compare
|
Upstream branch: 5d87e96 |
eda35fa to
713cd64
Compare
cf2fd3b to
cd9a59e
Compare
|
Upstream branch: a578b54 |
713cd64 to
ec95e86
Compare
cd9a59e to
41fb65e
Compare
|
Upstream branch: 6798668 |
ec95e86 to
042ca46
Compare
41fb65e to
bcefb31
Compare
|
Upstream branch: fd2e081 |
042ca46 to
314023d
Compare
bcefb31 to
9de6d74
Compare
|
Upstream branch: 32d3766 |
314023d to
5ef6c44
Compare
9de6d74 to
607e46d
Compare
|
Upstream branch: f7528e4 |
5ef6c44 to
02cbb8e
Compare
607e46d to
0f635c7
Compare
|
Upstream branch: 61ee2cc |
02cbb8e to
3a18874
Compare
0f635c7 to
cde4d9b
Compare
|
Upstream branch: 3ae4c52 |
cde4d9b to
2b3c471
Compare
|
Upstream branch: b13448d |
aabcdd6 to
66aef6d
Compare
2b3c471 to
2211108
Compare
|
Upstream branch: 180a46b |
66aef6d to
9dbfbd6
Compare
2211108 to
acca942
Compare
|
Upstream branch: 6ff4a0f |
9dbfbd6 to
6d0c60a
Compare
acca942 to
0821404
Compare
|
Upstream branch: 3547a61 |
6d0c60a to
0acfc5d
Compare
0821404 to
028d6d4
Compare
|
Upstream branch: 8cd189e |
0acfc5d to
fec5fb9
Compare
028d6d4 to
0c300ac
Compare
|
Upstream branch: 815276d |
fec5fb9 to
1e527a8
Compare
0c300ac to
b38c040
Compare
|
Upstream branch: 57cb269 |
1e527a8 to
bb2edcd
Compare
b38c040 to
1a8f119
Compare
|
Upstream branch: 5612ea8 |
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]>
bb2edcd to
d23138a
Compare
Pull request for series with
subject: bpf: Add lookup_and_delete_elem for BPF_MAP_STACK_TRACE
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1000599