Switch to cxplat_get_current_processor_number #3959
Merged
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
This pull request includes several changes to the
libs/runtime/ebpf_platform
files and an update to theexternal/usersim
submodule. The most important changes involve modifying theebpf_get_current_cpu
function to use a different method for retrieving the current processor number and adding an inline hint to the function declaration.Changes to
ebpf_get_current_cpu
function:libs/runtime/ebpf_platform.c
: Modified theebpf_get_current_cpu
function to usecxplat_get_current_processor_number
instead ofKeGetCurrentProcessorNumberEx
andKeGetProcessorIndexFromNumber
.libs/runtime/ebpf_platform.h
: AddedEBPF_INLINE_HINT
to theebpf_get_current_cpu
function declaration.Submodule update:
external/usersim
: Updated submodule commit to177182f08eb59f516f41f17e7d53a433e93100d9
.Testing
CI/CD
Reduces unbatched invoke from 37ns -> 22ns.
Documentation
No.
Installation
No.