public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* favourite vfs globals
@ 2003-11-28 21:05 Pat LaVarre
  2003-11-28 21:22 ` Pat LaVarre
  0 siblings, 1 reply; 5+ messages in thread
From: Pat LaVarre @ 2003-11-28 21:05 UTC (permalink / raw)
  To: linux-fsdevel

Which vfs globals are the most fun, in lk like 2.6.0-test11?

Pat LaVarre

P.S. I ask because:

> From: http://marc.theaimsgroup.com/?l=linux-fsdevel&m=107004461717172
> Subject:  Re: zeroes read back more often than appended
> Date:     2003-11-28 18:29:39
>
> CONFIG_DEBUG_KERNEL=y
> CONFIG_DEBUG_INFO=y
> CONFIG_DEBUG_SLAB=y
> CONFIG_MAGIC_SYSRQ=y

gdb vmlinux /proc/kcore

indeed does let me print globals that make some kind of sense. 
Specifically on my own in stunning ignorance, I notice Six things:

1) `?` suggests `help`.

2) `help` suggests `info variables`.

3) `info variables` takes minutes to complete, but writes its list out
thru tee if first you thought to tee your sudo'ed gdb.

4) `info variables vfs` completes much more quickly.

5) `print xtime` returns the same result til you `quit` and re-enter
gdb, also that result appears in between what `date +'%s %N'` prints
before and after, suggesting that this approach to gdb takes a blurry
snapshot of kernel memory and then walks us thru a stale copy of all the
bits.

6) Substituting /dev/kmem for /proc/kcore prints zero for xtime,
suggesting sym table addresses somehow not sync'ed with physical memory
in that abuse.



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

end of thread, other threads:[~2003-11-28 22:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-28 21:05 favourite vfs globals Pat LaVarre
2003-11-28 21:22 ` Pat LaVarre
2003-11-28 21:43   ` Pat LaVarre
2003-11-28 21:51     ` Pat LaVarre
2003-11-28 22:42       ` Pat LaVarre

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