Discussion:
Timestamp Counter Frequency under Linux
(too old to reply)
Bonita Montero
2023-01-25 16:44:07 UTC
Permalink
Is there a fixed point in the /proc or /sys filesystem where I can
get the frequency of the x86 timestamp counter ?
Scott Lurndal
2023-01-25 16:58:13 UTC
Permalink
Post by Bonita Montero
Is there a fixed point in the /proc or /sys filesystem where I can
get the frequency of the x86 timestamp counter ?
Searching google would be quicker than waiting for someone
find it for you.

https://stackoverflow.com/questions/24392392/getting-tsc-frequency-from-proc-cpuinfo
Bonita Montero
2023-01-25 17:14:17 UTC
Permalink
Post by Scott Lurndal
Post by Bonita Montero
Is there a fixed point in the /proc or /sys filesystem where I can
get the frequency of the x86 timestamp counter ?
Searching google would be quicker than waiting for someone
find it for you.
https://stackoverflow.com/questions/24392392/getting-tsc-frequency-from-proc-cpuinfo
I already read that posting but no one gave a proper answer there.
Ralf Fassel
2023-01-26 16:29:21 UTC
Permalink
* Bonita Montero <***@gmail.com>
| Is there a fixed point in the /proc or /sys filesystem where I can
| get the frequency of the x86 timestamp counter ?

https://blog.trailofbits.com/2019/10/03/tsc-frequency-for-all-better-profiling-and-benchmarking/
https://github.com/trailofbits/tsc_freq_khz

No idea how good/bad this is...
R'

Loading...