2.6.11 provides the kprobe infrastructure. 
You could write a small jprobe to query your variable. 

 



________________________________
From: Neependra Khare <neependra.kh...@gmail.com>
To: Parmenides <mobile.parmeni...@gmail.com>
Cc: kernelnewbies@nl.linux.org
Sent: Tue, August 3, 2010 10:52:27 AM
Subject: Re: How to query a kernel variable




On Mon, Aug 2, 2010 at 11:17 PM, Parmenides <mobile.parmeni...@gmail.com> wrote:

Hi,
>   I am reading the linux kernel of version 2.6.11. I want to query a
>kernel variable named max_low_pfn while the kernel running. Is there
>any means to achieve the goal? thx
>

If you were using newer kernel then you might have used systemTap.
http://lwn.net/Articles/343581/

Thanks.
Neependra


 

>--
>To unsubscribe from this list: send an email with
>"unsubscribe kernelnewbies" to ecar...@nl.linux.org
>Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



      

Reply via email to