LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-26-2008, 06:04 AM   #1
otheus
LQ Newbie
 
Registered: Jun 2006
Location: Austria
Distribution: RHEL AS 4
Posts: 25

Rep: Reputation: 16
Question Historical documentation of /proc/stat


While it's easy to find the current format of /proc/pid/stat, I can't so easily find historical information. For instance, currently, /proc/$$/stat is a line containing, among other things, the process' exec command in parenthesis, followed by its 1-letter status, followed by the parent PID of the process. What is the most recent Linux version that had a different format?
 
Old 09-27-2008, 05:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,709
Blog Entries: 54

Rep: Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965
Find where in the source it gets printed (procfs, right?), then track changes through the versioning system?
 
Old 09-29-2008, 03:53 AM   #3
otheus
LQ Newbie
 
Registered: Jun 2006
Location: Austria
Distribution: RHEL AS 4
Posts: 25

Original Poster
Rep: Reputation: 16
Linux has a versioning system?? You mean other than a directory of patches?
 
Old 09-30-2008, 02:52 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,709
Blog Entries: 54

Rep: Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965
http://git.kernel.org/?p=linux/kerne.../linux-2.6.git ?
 
Old 10-01-2008, 09:50 AM   #5
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
Just a wild guess, but you may get some information from the changelogs here:

ftp://ftp.kernel.org/pub/linux/kernel/

Perhaps begin with the 2.4 versions.
 
Old 10-06-2008, 03:55 AM   #6
otheus
LQ Newbie
 
Registered: Jun 2006
Location: Austria
Distribution: RHEL AS 4
Posts: 25

Original Poster
Rep: Reputation: 16
Talking

Quote:
Originally Posted by unSpawn View Post
Great answer. Found what I was looking for.... at least since version 2.6 it has not changed: [url]http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=fs/proc/array.c;h=37668fe998ad0f28aa5253138ba42351b4bf0d17;hb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.

UPDATE. This has been a part of the kernel since at least 2.0.1. The (first part) of the format of /proc/$$/stat has remained essentially unchanged. That's since 1996, so I think I'm on safe ground here.

Last edited by otheus; 10-06-2008 at 04:09 AM.
 
Old 10-06-2008, 12:54 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,709
Blog Entries: 54

Rep: Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965Reputation: 2965
Quote:
Originally Posted by otheus View Post
I think I'm on safe ground here.
Heh. Given the way kernel code mutates uncontrollably, something that hasn't changed for that long, yeah, relatively safe indeed...
 
  


Reply

Tags
kernel, programming


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
New cpu values in /proc/stat? eldonz Linux - General 1 10-19-2005 01:16 PM
/proc/stat cpu info GDarkBladE Linux - Software 2 10-11-2005 04:16 PM
/proc/stat cpu ahz Programming 1 04-24-2005 08:24 AM


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