Sponsored Content
Top Forums UNIX for Advanced & Expert Users Process calls - making sense of truss results Post 52313 by Perderabo on Tuesday 15th of June 2004 04:12:50 PM
Old 06-15-2004
Here is a link to the first document that will work without a sunsolve account...

http://sunsolve.sun.com/pub-cgi/retr...zone_110=23148

That "private-cgi" in the link tells you that you must be logged in to use the link.
 

10 More Discussions You Might Find Interesting

1. Solaris

Making sense of df -k & format verify output

I'm posting the output from two disks on my Solaris machine. The first part is the output from using the format command and then using the verify option on each disk. The last part is the output from my df -k command. I'm trying to match the partition to the filesystem/mount point. I'm assuming... (13 Replies)
Discussion started by: gonzotonka
13 Replies

2. Solaris

truss results

moved to the Netwoking (0 Replies)
Discussion started by: gogogo
0 Replies

3. IP Networking

truss results

I have tried to analyze the log of truss shown below. I haven't found anything clear for me indicating the problem. The process is the server that accepts client connections. To establish the connection it starts the child thread then it should transfer data. In reality it gets only connection.... (1 Reply)
Discussion started by: gogogo
1 Replies

4. Solaris

process doesn't crash when i use the truss ??

Hi All, We a critical application running on the Sun Solaris platform. But, for some reasons the process get's killed abnormally in the production environment and not sure what was causing this. I thought i would use the truss command to trace the errors.. so i used the bellow command truss... (5 Replies)
Discussion started by: sudharma
5 Replies

5. UNIX for Dummies Questions & Answers

Why does fibonacci sequence script stop making sense at 92nd iteration?

So, Just for practice, I wrote a simple fibonacci sequence script in bash. (03:08:02\$ cat fib #!/usr/bin/bash ret () { echo -ne "\n" sleep .5 } a=1 b=2 echo -n $a #1 A ret echo -n $b #2 B ret (8 Replies)
Discussion started by: DeCoTwc
8 Replies

6. AIX

How to start monitoring with truss before a process starts

Hi guys, Is there some way to monitor a process but previously starting truss like this? truss ls & ls Thanks in advance. (1 Reply)
Discussion started by: edgarvm
1 Replies

7. Programming

This Makes NO sense. I'm making a game and getting an error, need help.

Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an error... (1 Reply)
Discussion started by: lemonoid
1 Replies

8. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

9. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

10. Solaris

Beadm create -p on another pool - making sense of it

Hi all, I am trying out Solaris 11.3 Realize the option of -p when using beadm that i can actually create another boot environment on another pool. root@Unicorn6:~# beadm create -p mypool solaris-1 root@Unicorn6:~# beadm list -a BE/Dataset/Snapshot Flags... (1 Reply)
Discussion started by: javanoob
1 Replies
TRUSS(1)						    BSD General Commands Manual 						  TRUSS(1)

NAME
truss -- trace system calls SYNOPSIS
truss [-facedDS] [-o file] [-s strsize] -p pid truss [-facedDS] [-o file] [-s strsize] command [args] DESCRIPTION
The truss utility traces the system calls called by the specified process or program. Output is to the specified output file, or standard error by default. It does this by stopping and restarting the process being monitored via ptrace(2). The options are as follows: -f Trace descendants of the original traced process created by fork(2), vfork(2), etc. -a Show the argument strings that are passed in each execve(2) system call. -c Do not display individual system calls. Instead, before exiting, print a summary containing for each system call: the total system time used, the number of times the call was invoked, and the number of times the call returned with an error. -e Show the environment strings that are passed in each execve(2) system call. -d Include timestamps in the output showing the time elapsed since the trace was started. -D Include timestamps in the output showing the time elapsed since the last recorded event. -S Do not display information about signals received by the process. (Normally, truss displays signal as well as system call events.) -o file Print the output to the specified file instead of standard error. -s strsize Display strings using at most strsize characters. If the buffer is larger, ``...'' will be displayed at the end of the string. The default strsize is 32. -p pid Follow the process specified by pid instead of a new command. command [args] Execute command and trace the system calls of it. (The -p and command options are mutually exclusive.) EXAMPLES
# Follow the system calls used in echoing "hello" $ truss /bin/echo hello # Do the same, but put the output into a file $ truss -o /tmp/truss.out /bin/echo hello # Follow an already-running process $ truss -p 34 SEE ALSO
kdump(1), ktrace(1), ptrace(2) HISTORY
The truss command was written by Sean Eric Fagan for FreeBSD. It was modeled after similar commands available for System V Release 4 and SunOS. BSD
May 12, 2009 BSD
All times are GMT -4. The time now is 11:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy