lkml.org 
[lkml]   [1996]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: signed int for interrupts??
Date
> On Sun, 8 Sep 1996, Jon Lewis wrote:
>
> > 5: 1649726484 + cyclades
> > 9: 12023652 53c8xx
> > 10: 231379880 3c509
> > 11: -2104643917 + cyclades
>
> Now I'm really confused. I did some looking, and found that the interrupt
> counters _are_ or at least appear to be unsigned int.
>
> In kernel_stat.h:
> struct kernel_stat {
> ...
> unsigned int interrupts[NR_IRQS];
> ...
> };
>
> So why did my Irq 11 counter wrap at 2^31 rather than 2^32?

Off the cuff suggestion: perhaps it's the procfs code that (mis)interprets
the unsigned interrupt counter as a signed value.

I haven't looked at the kernel code for a while, so this is just a guess.

Russ
--
+-------------------------------------------------------+
| Russ Steffen |
| EMail: rsteffen@ia.net |
+-------------------------------------------------------+

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