LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2012, 09:15 AM   #1
pogo77
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Mapping of linux kernel in memory and getting virtual addresses


In this document (page 32) I've read that kernel is statically mapped during bootup at virtual address 0xc0000000 + 0x100000 and virtual-to-physical memory mapping is just a linear transformation (virtual address 0xc0000000 is physical address 0x0). Is this correct if we are talking about linux kernel? Linux kernel shouldn't be swapped, right? I need to get virtual addresses of some instructions in kernel, I tried to dissasamble /proc/kcore using objdump tool. According to Linux Documentation Project this file is an image of physical memory. How can I translate addresses obtained by objdump to virtual addresses so I can add kprobes on it?
Thanks in advance!
 
Old 05-07-2012, 03:10 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,876
Blog Entries: 4

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
During boot, many very odd things happen so that the software modules which are essential to the early stages of software and hardware configuration can do their work.

All of those modules are at that point deemed to be "trustworthy."
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping Kernel virtual address space to Physical memory zones (ZONE_DMA, ZONE_NORMAL) kumart Linux - Newbie 2 04-03-2012 09:11 AM
Linux Virtual memory mapping to Board memory map !rajkums! Linux - Kernel 4 10-19-2008 12:27 PM
Kernel virtual memory map TO Board memory map -----> Mapping !rajkums! Linux - Embedded & Single-board computer 0 10-18-2008 09:21 AM
mechanics of mapping process memory addresses to physical addresses on amd64 Tischbein Linux - Kernel 2 02-01-2007 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration