LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:58 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