lkml.org 
[lkml]   [1996]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: signed int for interrupts??
Date
From
> This was a disappointment.  I was looking forward to seeing my Cyclades
> interrupt count wrap at 2^32 and start counting up again...but just
> noticed that procinfo was reporting it to be stuck at (2^31)-1. Looking
> into /proc revealed this:
>
> endor:~# cat /proc/interrupts
> 0

Now I'm confused...2**31 is a huge number.

If you have interrupts at 1 Megahertz, (10**6), you still have a big
enough number for 10*25 seconds of interrupts.

There are about 10*5 seconds in a day...so we can encode years and years
and years (how long has your linux system been running).

Methinks the problem ws the width of the field, not rollover...

Would it be useful to print the interrupt cound as a floating pointing format?
(do we he any floating point support in the kernel?)

Or probably printer it the other way

(level name count)

with infinite precision.


--
marty
leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.056 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site