-
Notifications
You must be signed in to change notification settings - Fork 5
selftests/bpf: Fix the issue where the error code is 0 #5851
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
selftests/bpf: Fix the issue where the error code is 0 #5851
Conversation
|
Upstream branch: 98857d1 |
27199db to
bed149f
Compare
|
Upstream branch: 6417ca8 |
768704b to
581fe7c
Compare
bed149f to
c32e265
Compare
|
Upstream branch: e4980fa |
581fe7c to
39dd3c1
Compare
c32e265 to
0e26bd3
Compare
|
Upstream branch: c9110e6 |
39dd3c1 to
7259705
Compare
0e26bd3 to
4e70ac0
Compare
|
Upstream branch: abc8a95 |
7259705 to
aef0903
Compare
4e70ac0 to
c04dd5a
Compare
|
Upstream branch: 929adf8 |
aef0903 to
2b85037
Compare
c04dd5a to
4754b79
Compare
|
Upstream branch: 2d92ef7 |
2b85037 to
cef9786
Compare
4754b79 to
af15c58
Compare
|
Upstream branch: b338cf8 |
cef9786 to
f4ef5f6
Compare
af15c58 to
c979e9f
Compare
|
Upstream branch: 9621eb6 |
f4ef5f6 to
28ed511
Compare
c979e9f to
2d215b0
Compare
|
Upstream branch: e12873e |
The error message printed here only uses the previous err value, which results in it being printed as 0. Fix this issue by using libbpf_get_error to retrieve the error. Fix before: run_subtest:FAIL:1019 bpf_map__attach_struct_ops failed for map pro_epilogue: err=0 Fix after: run_subtest:FAIL:1019 bpf_map__attach_struct_ops failed for map pro_epilogue: err=-9 Signed-off-by: Feng Yang <[email protected]>
28ed511 to
8094cbd
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=996718 expired. Closing PR. |
Pull request for series with
subject: selftests/bpf: Fix the issue where the error code is 0
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=996718