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

How to correlate between HW timestamps and system time #837

Open
danfruehauf opened this issue May 14, 2019 · 2 comments
Open

How to correlate between HW timestamps and system time #837

danfruehauf opened this issue May 14, 2019 · 2 comments

Comments

@danfruehauf
Copy link

I'm trying to use hardware timestamping + libvma extended socket API (register_recv_callback).

When enabling SOL_SOCKET/SO_TIMESTAMPING/SOF_TIMESTAMPING_RAW_HARDWARE, the only way to get vma_info_t->hw_timestamp is to use it with conjunction with VMA_HW_TS_CONVERSION=1. Otherwise libvma returns ENODEV. I found this looking at the code.

My question now is how can I correlate the HW timestamp generated this way with system time? I could not find any documentation on that. And from my understanding SW timestamp is when the packet arrived to libvma/userland. My intention is to understand how long user land is "snoozing" while there is a packet on the wire.

@Bresenham
Copy link

Did you find a solution for this problem?

@danfruehauf
Copy link
Author

Did you find a solution for this problem?

@Bresenham Haven't looked at that for a while, but at the time, no, I did not find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants