LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 03-25-2005, 01:50 AM   #1
mdb84
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
Usage of strace


Hi all,

I wonder how I can find out which system calls are made from a program. I know that I should use "strace", I read the man page, but it always gave error when i tried possible combinations.(Let's say that the name of the file is "system.c"). In addition, I also want to find out system call numbers of system calls in that file, seperately from the first part i mentioned.

Thanks from now on.
 
Old 03-25-2005, 02:13 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what do you mean by "system.c"? are you running it with binaries or source files?

lets say you want to strace firefox for example:

Code:
strace firefox
if you want to append the output to a file for later review:

Code:
 strace firefox &> firefox_strace.txt
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strace app RajRed Linux - Software 1 12-03-2005 12:39 AM
Make and strace Clementine Linux - Newbie 0 02-16-2005 07:51 PM
strace question ronopolis Linux - Software 0 01-19-2005 10:41 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
bash + strace = ..... gearoid Programming 3 05-19-2004 03:05 AM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
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