LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2010, 02:12 PM   #1
fjkum
Member
 
Registered: Feb 2006
Posts: 38

Rep: Reputation: 15
Which source created /proc/stat


Hi,

I would like to find out what sources created this /proc/stat?
 
Old 06-16-2010, 04:10 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,530

Rep: Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481Reputation: 2481
In a kernel source tree, see in the file Documentation/filesystems/proc.txt, what is written under the title "1.8 Miscellaneous kernel statistics in /proc/stat"
 
Old 06-16-2010, 07:15 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,648

Rep: Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092Reputation: 2092
And if you look under ../fs/proc/ there will be stat.c
How the various values are derived will require some more digging in the source tree by you.
 
  


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
STAT() on directories of PROC ??? abhijit_awalekar Programming 2 09-07-2006 12:26 AM
STAT on directories of PROC ??? abhijit_awalekar Programming 1 09-06-2006 03:34 PM
/proc/stat values don't add up ! mike0w Linux - General 0 10-25-2005 05:01 AM
/proc/stat cpu ahz Programming 1 04-24-2005 07:24 AM


All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration