Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-25-2005, 01:50 AM   #1
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
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:

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

 strace firefox &> firefox_strace.txt


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration