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.
Ensure generated timestamps are session-monotonic #1221
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
Uh oh!
There was an error while loading. Please reload this page.
Ensure generated timestamps are session-monotonic #1221
Changes from 3 commits
a8e7487d2c7e04dbd79f0aab640459f5f0cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it is worth creating a dedicated error-code for clock issue here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Denis. I'll make the change before we merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a dedicated
_Z_ERR_TIMESTAMP_GENERATION_FAILEDerror code for this.Check warning
Code scanning / Cppcheck (reported by Codacy)
Because of missing configuration, misra checking is incomplete. There can be false negatives! Variable '_Z_RES_OK' is unknown Warning
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Uh oh!
There was an error while loading. Please reload this page.
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Uh oh!
There was an error while loading. Please reload this page.
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Uh oh!
There was an error while loading. Please reload this page.
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Check warning
Code scanning / Cppcheck (reported by Codacy)
timespec is Y2038-unsafe Warning
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to
clock_gettimefor nanosecond-level accuracy (up from microseconds). The Y2038 risk remains identical to the previousgettimeofdayimplementation on 32-bit systems, but the new interface provides better precision and retains compatibility across Unix environments.Check warning
Code scanning / Cppcheck (reported by Codacy)
clock_gettime is Y2038-unsafe Warning
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 1703 with no text in the supplied rule-texts-file Warning
Check warning
Code scanning / Cppcheck (reported by Codacy)
Because of missing configuration, misra checking is incomplete. There can be false negatives! Variable 'CLOCK_REALTIME' is unknown Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
False positive as
clock_gettimeis included viatime.h.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
Uh oh!
There was an error while loading. Please reload this page.