LinuxQuestions.org
Register a domain and help support LQ
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, 03: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, 05:10 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2beta3 on Lenovo Thinkpad W520
Posts: 6,788

Rep: Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135Reputation: 2135
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, 08:15 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,847

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


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