Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1884
  • Last Modified:

This is in AIX 5.3..how to evaluate the output of truss

i ran this command on a running process

truss -aef -o output.txt -p 654890

and it generated a file output.txt...But it is tough for me to analyse the output..Is there any command where we can make the report of that file so we could know where it is erroring out or failing and also are there any tools to evaluate the truss output..If none of the above works can you please let me know what to look for in the output file so that I could say here it is failing
0
aixtutorial
Asked:
aixtutorial
1 Solution
 
woolmilkporcCommented:
Hi,

unfortunately there is no anylyzer for truss.

Here is an article which describes a bit what you can see in the "truss" output:

http://www.ibm.com/developerworks/aix/library/au-unix-tracingapps.html

Basically, truss "displays the calls that an application makes to external libraries and the kernel. These calls give the application access to the network, the file system, and the display. By watching the calls and their results, you can get some idea of what the application "expects", which can lead to a solution."

To fully understand it you will make yourself comfortable with system calls, what parameters they expect and what they would return.
Here is the complete IBM documentation on AIX system calls, the IBM denomination being "Runtime Services":
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/doc/base/alphbeticallistofaixruntimeservices.htm

wmp
0
 
Duncan RoeSoftware DeveloperCommented:
truss is like Linux strace. Generally I analyse the output from strace by going to the bottom of the file and looking back for failed system calls (return code -1).
That is assuming the program crashed.
What sort of problem are you trying to solve?
Can you post the output from man truss executed on the AIX system please?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now