public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* "Needlessly global functions static...."
@ 2005-02-17 21:12 linux-os
  2005-02-17 21:23 ` Roland Dreier
  2005-02-17 21:25 ` Chris Wright
  0 siblings, 2 replies; 4+ messages in thread
From: linux-os @ 2005-02-17 21:12 UTC (permalink / raw)
  To: Linux kernel


Hello,
Tell me. When all those kernel functions are made static
how does one use a kernel debugger? How does the OOPS
get decoded if nothing is in /proc/kallsyms or System.map???

Cheers,
Dick Johnson
Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips).
  Notice : All mail here is now cached for review by Dictator Bush.
                  98.36% of all statistics are fiction.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Needlessly global functions static...."
  2005-02-17 21:12 "Needlessly global functions static...." linux-os
@ 2005-02-17 21:23 ` Roland Dreier
  2005-02-17 21:25 ` Chris Wright
  1 sibling, 0 replies; 4+ messages in thread
From: Roland Dreier @ 2005-02-17 21:23 UTC (permalink / raw)
  To: linux-os; +Cc: Linux kernel

    linux-os> Hello, Tell me. When all those kernel functions are made
    linux-os> static how does one use a kernel debugger? How does the
    linux-os> OOPS get decoded if nothing is in /proc/kallsyms or
    linux-os> System.map???

Dude, static symbols are still in System.map and /proc/kallsyms.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Needlessly global functions static...."
  2005-02-17 21:12 "Needlessly global functions static...." linux-os
  2005-02-17 21:23 ` Roland Dreier
@ 2005-02-17 21:25 ` Chris Wright
  2005-02-17 21:53   ` Arnd Bergmann
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Wright @ 2005-02-17 21:25 UTC (permalink / raw)
  To: linux-os; +Cc: Linux kernel

* linux-os (linux-os@analogic.com) wrote:
> 
> Hello,
> Tell me. When all those kernel functions are made static
> how does one use a kernel debugger? How does the OOPS
> get decoded if nothing is in /proc/kallsyms or System.map???

static != inline.  Locally scoped symbols, 't',  and global, 'T', 
are in kallsyms or System.map.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "Needlessly global functions static...."
  2005-02-17 21:25 ` Chris Wright
@ 2005-02-17 21:53   ` Arnd Bergmann
  0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2005-02-17 21:53 UTC (permalink / raw)
  To: Chris Wright; +Cc: linux-os, Linux kernel

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

On Dunnersdag 17 Februar 2005 22:25, Chris Wright wrote:

> static != inline.  Locally scoped symbols, 't',  and global, 'T', 
> are in kallsyms or System.map.

Well, actually they might get inlined automatically when building with
gcc -funit-at-a-time. That is of course a desired side effect of making
symbols local, although it can be confusing when you're looking at the
assembler output.

	Arnd <><



[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-17 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-17 21:12 "Needlessly global functions static...." linux-os
2005-02-17 21:23 ` Roland Dreier
2005-02-17 21:25 ` Chris Wright
2005-02-17 21:53   ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox