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
fix: convert kernel monotonic times to wall time (#268)
# Description
Adjusts timestamps from eBPF that use the kernel monotonic timer to UTC
during Flow ingestion.
This is done on a best-effort basis, because it is impossible to sample
from the monotonic timer and the wall-clock at the same instant. The
difference in the time it takes to execute these instructions should be
small enough for our purposes in practice.
## Related Issue
Fixes#204
## Checklist
- [x] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [ ] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [x] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes
made.
## Additional Notes
This is effectively only implemented for Unix builds as I don't know how
Windows ktime behaves (and we're only compiling these plugins for Linux
at the moment). It can be implemented on !unix in the future as
necessary.
---
Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
Signed-off-by: Evan Baker <[email protected]>
0 commit comments