Re: [patch] Performance Counters for Linux, v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will Newton wrote:
On Tue, Dec 9, 2008 at 1:46 PM, Ingo Molnar <mingo@xxxxxxx> wrote:

Firstly, sampling "at 1msec intervals" or any fixed period is a _very_
wrong mindset - and cross-sampling counters is a similarly wrong mindset.

If your hardware does not interrupt on overflow I don't think you have
any choice in the matter. I know such hardware is less than ideal but
it exists so it should be supported.

I think you could still set up the counters as Ingo describes and then sample the counters (as opposed to the program) at a suitable interval (chosen such that the counters won't overflow more than once between samples).

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux