diff options
author | Christian Eggers <[email protected]> | 2023-01-10 14:19:21 +0530 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-01-13 08:40:40 +0000 |
commit | bb01ad30570b09eb83438093cd7d29f04410b12e (patch) | |
tree | 3f476058a6c0a371f1e66bd7d84025e03707e164 /tools/perf/scripts/python/flamegraph.py | |
parent | c2977c61f32e0d54319d158a04cad5fd82c2afcf (diff) |
net: dsa: microchip: ptp: manipulating absolute time using ptp hw clock
This patch is used for reconstructing the absolute time from the 32bit
hardware time stamping value. The do_aux ioctl is used for reading the
ptp hardware clock and store it to global variable.
The timestamped value in tail tag during rx and register during tx are
32 bit value (2 bit seconds and 30 bit nanoseconds). The time taken to
read entire ptp clock will be time consuming. In order to speed up, the
software clock is maintained. This clock time will be added to 32 bit
timestamp to get the absolute time stamp.
Signed-off-by: Christian Eggers <[email protected]>
Co-developed-by: Arun Ramadoss <[email protected]>
Signed-off-by: Arun Ramadoss <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions