On Fri, 15 Aug 2008, Corey J Ashford wrote:
> Do the counters stop counting once they have overflowed?  If so, your patch
> looks correct to me.  Otherwise, the "== 0" will not work for many event
> types (particularly a cycles counter) because it will have counted past
> zero by the time you get into the interrupt handler.  Is there some other
> overflow bit you can look at to determine overflow?

Unfortunately I don't think there is another way to tell overflow.
Maybe instead of checking if it is equal to 0, we should just check to see
if the high bit is equal to zero?

Another issue is that other SPARC machines might handle this differently 
than niagara1.  I think I'll e-mail David Miller as he's the one who 
originally wrote the code.

Vince

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to