LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-20-2004, 10:16 PM   #1
riquelme
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
how to count the fault pages and the mapped pages


I define two static variables in linux\mm.h, fault_pages and mapped_pages to count the fault pages and the mapped pages.

In the function do_mmap() (linu\mm.h), I added a sentence :
mapped_pages+=len;
and in the function do_page_fault() (arch\i386\mm\fault.c) , I added :
fault_pages++;

Can I use this way to count the fault pages and the mapped pages?

I am fresh, and doing some practice of the linux kernel.

Thank you for your help!!!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ man pages Guest1234 Linux - Newbie 2 06-29-2008 09:12 AM
C++ man pages Guest1234 Ubuntu 0 05-11-2005 02:45 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
Cookie Sharing Between CGI generated HTML pages and standard HTML pages rkwhited Linux - Newbie 5 08-15-2004 07:39 AM
uses for 500 pages? acid_kewpie General 15 05-27-2002 11:19 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration