LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-02-2015, 08:03 PM   #1
dlevy022
LQ Newbie
 
Registered: Nov 2015
Posts: 10

Rep: Reputation: Disabled
How System.map addresses are translated


I am new to Kernel development and trying to make sense of things. I am running an Ubuntu 14.04 LTS machine that has the following entry in its System.map file

ffffffff81801400 R sys_call_table

Is the address a virtual memory offset or the actual virtual address where the system call table will reside. I've heard conflicting information from TWO experts - one suggests that it is the exact virtual address of the system call table and the other says I would need to add the kernel base virtual address to that virtual address to locate the system call table. Which one of these people are correct as I am now confused?

Last edited by dlevy022; 12-02-2015 at 08:04 PM.
 
Old 12-04-2015, 10:57 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Let's find out:

Code:
 cat /proc/2269/stack 
[<ffffffff813ab31e>] n_tty_read+0x51e/0xa20
[<ffffffff813a56f7>] tty_read+0xa7/0xf0
[<ffffffff8119e321>] vfs_read+0xb1/0x130
[<ffffffff8119e7af>] SyS_read+0x5f/0xa0
[<ffffffff8160e7f9>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff


grep n_tty_read  /boot/System.map-`uname -r`
ffffffff813aae00 t n_tty_read

813aae00 + 51e = 813ab31e
So I guess they are the actual addresses.
 
1 members found this post helpful.
  


Reply

Tags
kernel, syscall, ubuntu 14.04



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS-provided physical addresses map enter88 Linux - Newbie 1 06-10-2015 02:05 PM
Advice on how to map very large buffers & obtain addresses for processor and dma ManteoBob Linux - Newbie 2 01-21-2014 05:01 PM
system memory map info when system boots up pradeepn Linux - Virtualization and Cloud 0 08-23-2011 02:02 AM
[SOLVED] how to map local addresses to FQDN addresses with postfix sneakyimp Linux - Server 5 08-04-2011 03:18 PM
How map the IP Addresses anupverma Linux - Networking 0 07-08-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:19 AM.

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