From: "H. Peter Anvin" <hpa@transmeta.com>
To: "Martin.Knoblauch" <Martin.Knoblauch@TeraPort.de>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [Patch] Output of L1,L2 and L3 cache sizes to /proc/cpuinfo
Date: Tue, 22 May 2001 09:55:03 -0700 [thread overview]
Message-ID: <3B0A99E7.467CE534@transmeta.com> (raw)
In-Reply-To: <3B0A28C0.2FFFC935@TeraPort.de> <3B0A3794.15BDF9D6@TeraPort.de>
"Martin.Knoblauch" wrote:
>
> After some checking, I could have made the answer a bit less terse:
>
> - it would require that the kernel is compiled with cpuid [module]
> support
> - not everybody may want enable this, just for getting one or two
> harmless numbers.
If so, then that's their problem. We're not here to solve the problem of
stupid system administrators.
> - you would need a utility with root permission to analyze the cpuid
> info. The
> cahce info does not seem to be there in clear ascii.
Bullsh*t. /dev/cpu/%d/cpuid is supposed to be mode 444 (world readable.)
> - this limits my script to root users, or you need the setuid-bit on
> the
> utility. Not really good for security.
See above.
> - the cpuid stuff is i386 specific [today]. So are my changes. But
> implementing
> them for other architectures [if there is interest in the info] would
> not
> require to also implement the cpuid on other architectures. Which may
> not make any
> sense at all.
>
> So, having the numbers in clear text in the cpuinfo file looks simpler
> and safer to me, although reading /dev/cpu/*/cpuinfo maybe more
> versatile [on i386] - at some cost.
>
> Question: are there any utilities or other uses for the cpuid device
> today? Just interested. The kernel seems to work well without it.
That is usually the case with devices -- the kernel doesn't care, why
would it?
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
next prev parent reply other threads:[~2001-05-22 16:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-22 8:52 [Patch] Output of L1,L2 and L3 cache sizes to /proc/cpuinfo Martin.Knoblauch
2001-05-22 9:55 ` Martin.Knoblauch
2001-05-22 16:55 ` H. Peter Anvin [this message]
2001-05-22 18:08 ` Alan Cox
2001-05-22 23:57 ` Martin Knoblauch
2001-05-23 0:05 ` H. Peter Anvin
2001-05-23 0:18 ` Tomas Telensky
2001-05-23 1:08 ` Dave Jones
2001-05-23 9:24 ` Martin.Knoblauch
2001-05-23 1:48 ` Dave Jones
2001-05-23 7:10 ` Martin.Knoblauch
2001-05-22 16:52 ` H. Peter Anvin
-- strict thread matches above, loose matches on Subject: below --
2001-05-21 12:39 Martin.Knoblauch
2001-05-21 15:16 ` H. Peter Anvin
2001-05-22 2:59 ` Steven Walter
2001-05-22 3:22 ` Dave Jones
2001-05-22 4:44 ` David Weinehall
2001-05-22 11:15 ` Dave Jones
2001-05-22 22:47 ` Tomas Telensky
2001-05-22 23:43 ` Dave Jones
2001-05-22 23:50 ` Martin Knoblauch
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=3B0A99E7.467CE534@transmeta.com \
--to=hpa@transmeta.com \
--cc=Martin.Knoblauch@TeraPort.de \
--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