You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dahavey
added
cleanup
Affects API usability or code maintainability but not correctness or applicability
and removed
bug
Something isn't working
labels
Sep 25, 2023
Describe the bug
Debuggability: Pinning error trace is misleading in debugging.
It is expected to have a key not found when the map is newly created and pinning is not done.
Trace:
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_create_map returned success
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_get_pinned_object
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_pinning_table_find
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_pinning_table_find returned error,19
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_get_pinned_object returned error,19
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_create_map
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_map_create
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]_create_object_hash_map
[39]1624.193C::2023-09-21 15:06:26.935 [EbpfForWindowsProvider]_create_object_hash_map returned success
[39]1624.193C::2023-09-21 15:06:26.935 [EbpfForWindowsProvider]eBPF object initialized,0xFFFFB589858AAF30,1
where 19 is KEY_NOT_FOUND.
OS information
Windows 10 and above.
Steps taken to reproduce bug
logman create trace "xdp_trace" -o C:\Temp\xdp_trace.etl -f bincirc -max 1024 -ets
logman update trace "xdp_trace" -p "{394f321c-5cf4-404c-aa34-4df1428a7f9c}" 0xffffffffffffffff 0xff -ets
logman update trace "xdp_trace" -p "{f2f2ca01-ad02-4a07-9e90-95a2334f3692}" 0xffffffffffffffff 0xff -ets
logman update trace "xdp_trace" -p "{00e7ee66-5b24-5c41-22cb-af98f63e2f90}" 0xffffffffffffffff 0xff -ets
logman stop "xdp_trace" -ets
netsh trace convert C:\Temp\xdp_trace.etl
xdp_trace_2.txt
Expected behavior
The proposal agreed upon internal discussion:
Actual outcome
Prints error of 19 (KEY_NOT_FOUND)
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_create_map returned success
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_get_pinned_object
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_pinning_table_find
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_pinning_table_find returned error,19
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_get_pinned_object returned error,19
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_core_create_map
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]ebpf_map_create
[39]1624.193C::2023-09-21 15:06:26.933 [EbpfForWindowsProvider]_create_object_hash_map
[39]1624.193C::2023-09-21 15:06:26.935 [EbpfForWindowsProvider]_create_object_hash_map returned success
[39]1624.193C::2023-09-21 15:06:26.935 [EbpfForWindowsProvider]eBPF object initialized,0xFFFFB589858AAF30,1
Additional details
No response
The text was updated successfully, but these errors were encountered: