Skip to content
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

Timestamp from bpftrace rolls over #8

Open
zmitchell opened this issue Sep 9, 2024 · 0 comments
Open

Timestamp from bpftrace rolls over #8

zmitchell opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@zmitchell
Copy link
Owner

If you leave the program running long enough, the timestamp rolls over and events are recorded out of order.

One way to mitigate this is to have a global counter in the bpftrace script, increment it on every event, and report it along with the rest of the event data. You can timestamp the event on the proctrace side, but I suspect that will be less accurate because it depends on what kind of load proctrace is under.

@zmitchell zmitchell added bug Something isn't working good first issue Good for newcomers labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant