From: "Todd R. Eigenschink" <todd@tekinteractive.com>
To: linux-kernel@vger.kernel.org
Subject: interrupt count (/proc/stat) change in 2.4.19-pre9
Date: Wed, 29 May 2002 23:04:13 -0500 [thread overview]
Message-ID: <15605.42173.758778.408074@rtfm.ofc.tekinteractive.com> (raw)
What's the purpose of this patchlet (below) in 2.4.19-pre9? Interrupt
counts that would otherwise be zero are, of course, a billion larger
than they should be.
Is it trying to induce some sort of intentional overflow in the
interrupt count, or is there some other big-picture change that
requires this? I see the comment from the BK changeset, but I still
don't understand the purpose.
http://linux.bkbits.net:8080/linux-2.4/cset@1.445.1.6
@@ -299,10 +321,11 @@
#if !defined(CONFIG_ARCH_S390)
for (i = 0 ; i < NR_IRQS ; i++)
- len += sprintf(page + len, " %u", kstat_irqs(i));
+ proc_sprintf(page, &off, &len,
+ " %u", kstat_irqs(i) + 1000000000);
#endif
rtfm 22:53:54 eigenstr > cat /proc/stat
cpu 348158 0 266880 7305274
cpu0 348158 0 266880 7305274
page 2537925 2677355
swap 16803 25944
intr 16414147 1007920312 1000106007 1000000000 1001336824 1000000003 1000000633 1000000003 1000000035 1006470428 1000000008 1000000004 1000000003 1000176343 1000000000 1000403540 1000000004 1000000000 blah blah blah
Todd
next reply other threads:[~2002-05-30 4:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 4:04 Todd R. Eigenschink [this message]
2002-05-30 4:17 ` interrupt count (/proc/stat) change in 2.4.19-pre9 Benjamin LaHaise
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15605.42173.758778.408074@rtfm.ofc.tekinteractive.com \
--to=todd@tekinteractive.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox