Linux-kernel mailing list archive 2000-26,: Re: nr_files in linux-2.4.0-test2

# Re: nr_files in linux-2.4.0-test2

goingware.com (crawford@dragnet.seagull.net)
Sun, 25 Jun 100 14:11:07 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: David Ford: "Re: IMMUTABLE and APPEND-ONLY rationales"
- Previous message: Chris Lattner: "RE: REQ: OS/Kernel Devel Docs"
- In reply to: Alan Cox: "Re: nr_files in linux-2.4.0-test2"
- Next in thread: Tigran Aivazian: "Re: nr_files in linux-2.4.0-test2"

> The BSS is zero filled. If it isnt starting as zero then something bad is
> happening and that needs to be discovered

Maybe this doesn't happen to everyone but I think it would be an important thing
to watch out for.

I don't know how asserts are coded in the kernel, but I would suggest picking
out a few BSS symbols and asserting they are zero right when the kernel starts
up and panicking if they're not.

Another thing to assert is that a global variable is actually equal to the
value you initialize it to be.

I guess when you're booting off the program that is supposed to be so initialized
then you'd want to have these asserts after the executable is fully loaded.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: David Ford: "Re: IMMUTABLE and APPEND-ONLY rationales"
- Previous message: Chris Lattner: "RE: REQ: OS/Kernel Devel Docs"
- In reply to: Alan Cox: "Re: nr_files in linux-2.4.0-test2"
- Next in thread: Tigran Aivazian: "Re: nr_files in linux-2.4.0-test2"