LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-07-2007, 07:06 AM   #1
iCc
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
[Help]How To display or list my systemcall in fedora 5?


Hi guys...
I'm new to this forum and to linux also...
i need some help here... i've been trying to make a new system call from my fedora 5, i want to try to list or display the system call which takes the name of a program as a parameter and reports the following statistics for the given program assigned by the user. In other words, a tool reporting the statistics of any running program specified by users can be implemented through your new system call.
But i still can't make it... well i'm really newbie to this linux...
can somebody help me with a tutorial?
thanks in advance...

Regards,
iCc
 
Old 01-07-2007, 09:21 AM   #2
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
Geez, what's going on here!? :-D
Is this what you consider a typical "Linux newbie" question?? It is concerning Linux *programming* isn't it?? Why not post it into the *Programming* forum...?
I would have expected something more like "Hi i m new to Linux Where must I click my mouse to start into the intarwebs??"

I read your post several times, and I honestly don't even get what you are talking about.
However, there are a lot of good Linux programming resources here:
http://stommel.tamu.edu/~baum/programming.html
 
Old 01-07-2007, 10:54 AM   #3
iCc
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Hi there FnordPerfect...
well i think this topic is kind of a newbie topic too lol...
well maybe i'm not quite good in explaining my purpose, my purpose of this project is to modify the Linux kernel to record and report some statistics of programs after their execution. The kernel will provide a system call, which takes the name of a program as a parameter and reports the following statistics for the given program assigned by the user. In other words, a tool reporting the statistics of any running program specified by users can be implemented through your new system call.

1. the program name
2. the CPU time consumed during the execution
3. the number of files, if any, and their total size opened to read during the execution
4. the number of child processes, if any, created for the program during the execution.
5. the number of context switch performed for the program during the execution

ps: i already see the website you gave me and i still can't find what i need... thanks anyway.
 
Old 01-07-2007, 11:10 AM   #4
FnordPerfect
Member
 
Registered: Dec 2006
Location: Germany
Distribution: Kubuntu (Feisty Fawn), Debian (SID)
Posts: 127

Rep: Reputation: 15
but there are quite a lot of statistics already available four your viewing pleasure in the virtual /proc filesystem. have a look there and you'll find that every process PID running has its own virtual directory there.
In there you'll find
* the program name
* the total number of files (open file descriptors) in ./fd
* countless other stuff I have not a clue about.
Check Documentation/filesystems/proc.txt in the kernel source directory.

But anyway, I'm outa here, I'm not a programmer at all!

good luck

PS: I still think this should go into Programming forum
 
  


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
listing file systemcall athena_1 Programming 1 07-29-2006 08:16 AM
Can connect to ftp, but can't display list absolute0net Linux - Networking 3 03-25-2005 09:01 AM
Display CVS module list neranjana Linux - Software 1 01-14-2005 04:57 AM
Display a list of files in a folder in apache Snorideguy Linux - Software 4 02-26-2004 02:05 PM
ncurses - init screen after systemcall lea Programming 3 10-24-2002 12:34 PM


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