Messages in this thread | | | Date | Tue, 09 Dec 2008 11:35:01 -0600 | From | "Chris Friesen" <> | Subject | Re: [patch] Performance Counters for Linux, v2 |
| |
Will Newton wrote: > On Tue, Dec 9, 2008 at 1:46 PM, Ingo Molnar <mingo@elte.hu> 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
| |