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.