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

 



________________________________
From: Neependra Khare <[email protected]>
To: Parmenides <[email protected]>
Cc: [email protected]
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 <[email protected]> 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 [email protected]
>Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



      

Reply via email to