On Wed, 15 Jul 2009, Mulyadi Santosa wrote: > On 7/15/09, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote: > > > > i'm aware of a number of ways to debug kernel space variables from > > user space, but i'm not sure there's a way to do it if you're > > extremely limited in the information you have at hand. > > > > the scenario: a running 64-bit fedora 11 system. there is no > > "vmlinux" file at hand -- all i have is the vmlinuz file representing > > the running kernel. i have "gdb" installed, and there exist the files > > /proc/kcore and /proc/kallsyms. but given only that, is there any way > > to list the current value of, say, the kernel variable "jiffies"? > > > > i can see in /proc/kallsyms the entry > > > > ffffffffff600880 D __jiffies > > > > but without the vmlinux file, i don't think gdb will do me any good. > > or am i misremembering? > > > > rday > > IIRC, we've talked about it around 2 years ago. In fact, I wrote it > down in my blog. Is this what you're looking for? > > http://the-hydra.blogspot.com/2007/07/observing-kernel-variables-content-with.html > > PS: you might need to adapt how much byte you read since you're using > 64 bit now... i'd better review all that since it's been a couple years. :-) rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday "Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX ======================================================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ