This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fedora rawhide problems with kprobes/debuginfo addresses


On Fri, Mar 02, 2007 at 05:32:43PM -0500, Dave Jones wrote:
> On Fri, Mar 02, 2007 at 02:20:25PM -0800, Roland McGrath wrote:
>  > Oops, well I never noticed.  Is there a canonical way to get the runtime
>  > base address of the running kernel?
> 
> dunno.  Grab _stext from /proc/kallsyms ?
> Vivek probably has a canonical answer.
> 

Not very sure exactly what information you are looking for. But I am
assuming you are looking for run time virtual and physical address of the
kernel.

For virtual address you can grab _text or _stext. Alternatively you can
parse /proc/kcore and look for ELF header where kernel is mapped.

Dave Anderson is already parsing /proc/kcore for determining kernel
virtual address in "crash" for x86_64  

For physical address you can look at /proc/iomem and grab "Kernel Code".

Thanks
Vivek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]