-
Notifications
You must be signed in to change notification settings - Fork 240
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
Approximate time helpers #4013
Open
Alan-Jowett
wants to merge
8
commits into
microsoft:main
Choose a base branch
from
Alan-Jowett:issue4009
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Approximate time helpers #4013
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
Signed-off-by: Alan Jowett <[email protected]>
Alan-Jowett
requested review from
dthaler,
poornagmsft,
saxena-anurag,
shankarseal,
dv-msft,
gtrevi,
shpalani,
matthewige,
mtfriesen and
rectified95
as code owners
November 14, 2024 19:54
Signed-off-by: Alan Jowett <[email protected]>
Alan-Jowett
force-pushed
the
issue4009
branch
from
November 14, 2024 20:10
b77fd54
to
80b046f
Compare
Signed-off-by: Alan Jowett <[email protected]>
dthaler
reviewed
Nov 15, 2024
Co-authored-by: Dave Thaler <[email protected]>
dthaler
previously approved these changes
Nov 15, 2024
mikeagun
previously approved these changes
Nov 15, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 15, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 16, 2024
Signed-off-by: Alan Jowett <[email protected]>
mikeagun
approved these changes
Nov 21, 2024
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.
Resolves: #4009
Description
This pull request introduces new eBPF helper functions for retrieving time since boot in milliseconds and updates the codebase to use a new timing function,
cxplat_query_time_since_boot_precise
. Additionally, it includes updates to related data structures and test cases.New eBPF Helper Functions:
bpf_ktime_get_boot_ms
andbpf_ktime_get_ms
helper functions to retrieve time since boot in milliseconds, including and excluding suspended time, respectively. (include/bpf_helper_defs.h
,include/ebpf_structs.h
,libs/execution_context/ebpf_core.c
,libs/execution_context/ebpf_general_helpers.c
) [1] [2] [3] [4]Codebase Updates:
ebpf_query_time_since_boot_precise
andebpf_query_time_since_boot_approximate
withcxplat_query_time_since_boot_precise
andcxplat_query_time_since_boot_approximate
across various files for better performance and consistency. (libs/execution_context/ebpf_core.c
,libs/execution_context/ebpf_maps.c
,libs/execution_context/ebpf_program.c
,libs/runtime/ebpf_platform.c
,tests/performance/platform.cpp
) [1] [2] [3] [4] [5]Data Structures and Test Cases:
ebpf_utility_helpers_data_t
structure to include new timestamp fields in milliseconds. (tests/sample/sample_test_common.h
)tests/libs/common/common_tests.cpp
,tests/sample/sample_common_routines.h
) [1] [2]Testing
CI/CD
Documentation
Yes, doxygen updated.
Installation
No.