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

Converting kernel-space timestamp to user-space timestamp #420

Closed
h0x0er opened this issue Nov 16, 2023 · 2 comments
Closed

Converting kernel-space timestamp to user-space timestamp #420

h0x0er opened this issue Nov 16, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@h0x0er
Copy link
Contributor

h0x0er commented Nov 16, 2023

In code under /kern, bpf_ktime_get_ns() is being used to get the timestamp. This function returns kernel-space timestamp.

The timestamp along with other data is then returned to user-space. So converting it to user-space timestamp makes more sense, instead of keeping it as kernel timestamp. As end-user would be more interested to know at what user-time, specific event was received.

Refer: #418

@cfc4n cfc4n added the enhancement New feature or request label Nov 17, 2023
@cfc4n
Copy link
Member

cfc4n commented Nov 17, 2023

yep, got it. thanks.

@h0x0er
Copy link
Contributor Author

h0x0er commented Nov 17, 2023

@cfc4n ,Thanks for merging the PR. Feel free to close the issue.

@cfc4n cfc4n closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants