Hi Stephane,
ok, TSC is not a performance counter like the others are - but it is
useful for performance monitoring, and at least I would be happy if
pfmon as a performance monitoring tool could measure it. So far I've
hacked it myself into the sources, but as I'm not aware of the pfmon
internals, it's likely not as close to the running applications as
possible - and it does not handle forks correctly...
Tomas
Stephane Eranian wrote:
Tomas,
On Wed, May 30, 2007 at 03:08:28PM +0200, Tomas Kalibera wrote:
I have a question why pfmon does not measure the TSC counts on the IA32
platform, using the RDTSC instruction ? I've seen that earlier versions
of perfmon had a function that did this (get_timestamp). The nice thing
I like on TSC is that it keeps counting while the processor/processors
are halted or even powered down, so that it gives more precise
estimation of the wall clock time than the other tick counters (i.e.
GLOBAL_POWER_EVENTS:RUNNING).
TSC is not a performance counter. It does not behave the same way.
Earlier versions of perfmon were using TSC to timestamp samples,
It was never used as a counter you can just read.
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/