LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-07-2011, 11:31 AM   #1
universe_root
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Question How to get information about process in Linux


I am want get next information:

Get process statistics from kernel and return them buf as

Quote:
number of processes : ticks_user : ticks_system : ticks_interrupt : cpuseconds : procsizes : resident segment sizes
I am find some this information in /proc/[pid]/stat, but there are is not data about ticks system, ticks_interrupt, cpusecond. Where I am can find it information???

I am write on C, better if it will file witch information, and not programm.
 
Old 04-07-2011, 12:41 PM   #2
universe_root
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Where can I find info about these?

Any pointers to API or documentation will be helpful
 
Old 04-07-2011, 03:38 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
A 30-seconds on google lead me to this:
http://www.linuxquestions.org/questi...-linux-130807/


Does it help?


Cheers,
Tink
 
  


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
Find process information by name. archShade Linux - Software 1 05-17-2010 12:17 AM
How to get the current process information balasquare@yahoo.com Programming 4 09-29-2005 04:39 AM
get information when a process run?????? hungnt Linux - Newbie 6 07-16-2005 10:57 AM
process information application? YBA^[x] Slackware 6 01-13-2005 10:04 AM

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

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