This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi,
I found that __stp_estimate_cpufreq() in runtime/time.c returned inaccurate cpu frequency, especially on Xen kernel. If frequency is estimated smaller than true frequency, gettimeofday_*() can rewind.
Thus, I think we better use special methods for each architecture, e.g. cpufreq_quick_get() and cpu_khz for i386/x86-64 and local_cpu_data-> itc_freq for ia64. If we can't use those methods, estimating frequency by using udeley() is the last resort. I attached a patch to do that.
What would you think about this idea?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |