From: John Bradford <john@grabjohn.com>
To: davidsen@tmr.com (Bill Davidsen)
Cc: rddunlap@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix os release detection in module-init-tools-0.9.6
Date: Thu, 2 Jan 2003 13:07:03 +0000 (GMT) [thread overview]
Message-ID: <200301021307.h02D73hU001084@darkstar.example.net> (raw)
In-Reply-To: <Pine.LNX.3.96.1030102073757.18246B-100000@gatekeeper.tmr.com> from "Bill Davidsen" at Jan 02, 2003 07:47:45 AM
> > | > > | Um, you read the .config, which hopefully is stored somewhere.
> > | > > | (Although you could resurrect the /proc/config patch which goes around
> > | > > | every so often). There are many things you can't tell by reading
> > | > > | /proc/ksyms.
> > | > >
> > | > > Right, the .config file is the answer. And there are at least 2
> > | > > patch solutions for it, the /proc/config that Rusty mentioned, or
> > | > > the in-kernel config that Khalid Aziz and others from HP did along
> > | > > with me, and it's in 2.4.recent-ac or 2.5.recent-dcl or 2.5.recent-cgl.
> > | >
> > | > It would be useful to have a few global options perhaps included in /proc
> > | > (or wherever) on all kernels. By global I mean those which affect the
> > | > entire kernel, like preempt or smp, rather than driver options. We already
> > | > note 'tainted,' so this is not a totally new idea. It would seem that most
> > | > of the processor options could fall in this class, MCE, IOAPIC, etc.
> > | >
> > | > If the aim is to speed stability, putting any of the "whole config"
> > | > options in and defaulted on might be a step toward that.
> > |
> > | Having all of the config options in a /proc/config file would be a
> > | great help for people using my new bug database, because it would
> > | allow them to upload the .config for their current kernel even if it
> > | is not one they have compiled themselves.
> >
> > It seems that we still differ that putting them in /proc
> > is required. I don't see a hard requirement for that as long
> > as the vmlinu[xz] or bzImage etc. file contains the config
> > strings, which is what the other mentioned patch does.
>
> The problem is that a failing kernel shouldn't be trying to get that info,
> and it would be (at least) as valuable as tainted to have a summary line
> showing the global options in the oops.
Yes, you're right, I wasn't thinking - people generally aren't going
to be submitting bug reports about the kernel that's actually running,
they'll boot in to another, (stable), one.
> > They are still affixed to a particular file, and they can be
> > pulled from it whether it's the running kernel or not.
> > Putting them in /proc wastes RAM and is undesirable, at least
> > on small systems and most embedded platforms.
> So do many other optional things. That's why they're optional. Putting the
> whole .config in /proc should be optional, a few global flags like preempt
> are probably valuable enough in an oops to justify a few bytes.
The way to do it, then, would be to have a directory with files
created for each enabled option.
I.E. instead of having a file that resembled a .config file somewhere
in /proc, have a directory called config in proc:
# ls /proc/config
CONFIG_X86 CONFIG_MMU CONFIG_SWAP
CONFIG_UID16 CONFIG_GENERIC_ISA_DMA CONFIG_EXPERIMENTAL
..etc...
# cat /proc/config/CONFIG_X86
y
That way, on an embedded system you can eliminate some of the entries,
and a check such as
if exist(/proc/CONFIG_X86) echo 'Running on an X86'
will still work, regardless of whether, E.G. CONFIG_PCI_NAMES has been
included, or left out to save memory.
> > | At the moment, the facility to search for bugs via the config options
> > | that cause them is only useful for people who are compiling their own
> > | kernel.
>
> That one *would* be solved by a .config added to the vmlinuz file, or by a
> config list in /lib/modules/{kernel}, etc.
One solution would be for people to upload their whole kernel, and
have my DB just parse the .config part at the end - a bit wasteful,
but if it makes it easier for people to submit bug reports, then maybe
it's a necessary feature.
John.
next prev parent reply other threads:[~2003-01-02 13:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-28 10:38 [PATCH] fix os release detection in module-init-tools-0.9.6 Zhuang, Louis
2002-12-29 5:54 ` Rusty Russell
2002-12-29 18:33 ` Randy.Dunlap
2003-01-01 15:51 ` Bill Davidsen
2003-01-01 16:23 ` John Bradford
2003-01-01 18:53 ` Randy.Dunlap
2003-01-02 12:47 ` Bill Davidsen
2003-01-02 13:07 ` John Bradford [this message]
2003-01-02 16:22 ` Randy.Dunlap
-- strict thread matches above, loose matches on Subject: below --
2002-12-28 5:49 Zhuang, Louis
2002-12-28 6:12 ` Rusty Russell
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=200301021307.h02D73hU001084@darkstar.example.net \
--to=john@grabjohn.com \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.