-
Notifications
You must be signed in to change notification settings - Fork 206
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
Change trace in ebpf_pinning_table_find #2954
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shpalani
requested review from
dthaler,
poornagmsft,
Alan-Jowett,
saxena-anurag,
shankarseal,
dv-msft,
gtrevi,
matthewige,
mtfriesen and
rectified95
as code owners
October 7, 2023 00:25
dthaler
previously requested changes
Oct 7, 2023
shankarseal
reviewed
Oct 24, 2023
shankarseal
reviewed
Oct 24, 2023
shankarseal
previously approved these changes
Oct 27, 2023
gtrevi
previously approved these changes
Oct 31, 2023
dthaler
reviewed
Nov 8, 2023
dthaler
approved these changes
Nov 9, 2023
shankarseal
approved these changes
Nov 15, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Problem:
ebpf_pinning_table_find() returns EBPF_RETURN_RESULT(retval), which prints success or failure trace upon return.
In _ebpf_native_reuse_map(), ebpf_pinning_table_find() was printing a trace with an error.
It is not an error if the Key is not found in the pinning table, as there will be no entry for the newly created map.
Solution:
Testing
_Do any existing tests cover this change? Are new tests needed? No
Before fix
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_native_load_programs
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]_ebpf_native_create_maps
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]_ebpf_native_initialize_maps
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]_ebpf_native_initialize_maps returned success
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_core_get_pinned_object
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_pinning_table_find
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_pinning_table_find returned error,19
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_core_get_pinned_object returned error,19
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_core_create_map
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_map_create
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]eBPF object initialized,0xFFFFC60C2A4E4F30,1
[38]1EB8.11F8::2023-10-06 16:21:56.698 [EbpfForWindowsProvider]ebpf_map_create returned success
xdp_trace_withoutfix.txt
After fix:
xdp_trace.txt
Documentation
_Is there any documentation impact for this change?No
Installation
_Is there any installer impact for this change? No