errinfo(1m) USER COMMANDS errinfo(1m)NAME
errinfo - print errno for syscall fails. Uses DTrace.
SYNOPSIS
errinfo [-a|-A|-hsvZ] [-c command]
DESCRIPTION
errinfo snoops syscall failures and prints the errno value and description of the error number.
This program can help determine if applications are silently failing, providing some details on the cause.
Since this uses DTrace, only users with root privileges can run this command.
OPTIONS -c counts - print an aggregate style report containing a frequency count of errors
-p PID examine this PID only
-n name
examine processes with ths name only (eg, "ls")
EXAMPLES
Default output, print errors as they occur,
# errinfo
Print a frequency count report,
# errinfo -c
Snoop errors as they occur for "ssh" processes,
# errinfo -n ssh PP
Snoop errors for PID 81 only,
# errinfo -p 81
FIELDS
EXEC Program name (truncated)
SYSCALL
System call name
ERR Value of errno
DESC Description of errno message
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
errinfo will run forever until Ctrl-C is hit.
FILES
/usr/include/sys/errno.h
Contains the full descriptions for the error numbers.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO dtrace(1M), truss(1)version 1.10 May 14, 2005 errinfo(1m)
Check Out this Related Man Page
procsystime(1m) USER COMMANDS procsystime(1m)NAME
procsystime - analyse system call times. Uses DTrace.
SYNOPSIS
procsystime [-acehoT] [ -p PID | -n name | command ]
DESCRIPTION
procsystime prints details on system call times for processes, both the elapsed times and on-cpu times can be printed.
The elapsed times are interesting, to help identify syscalls that take some time to complete (during which the process may have slept). CPU
time helps us identify syscalls that are consuming CPU cycles to run.
Since this uses DTrace, only users with root privileges can run this command.
OPTIONS -a print all data
-c print syscall counts
-e print elapsed times, ns
-o print CPU times, ns
-T print totals
-p PID examine this PID
-n name
examine processes which have this name
EXAMPLES
Print elapsed times for PID 1871,
# procsystime -p 1871
Print elapsed times for processes called "tar",
# procsystime -n tar
Print CPU times for "tar" processes,
# procsystime -on tar
Print syscall counts for "tar" processes,
# procsystime -cn tar
Print elapsed and CPU times for "tar" processes,
# procsystime -eon tar
print all details for "bash" processes,
# procsystime -aTn bash
run and print details for "df -h",
# procsystime df -h
FIELDS
SYSCALL
System call name
TIME (ns)
Total time, nanoseconds
COUNT Number of occurrences
DOCUMENTATION
See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver-
bose descriptions explaining the output.
EXIT
procsystime will sample until Ctrl-C is hit.
AUTHOR
Brendan Gregg [Sydney, Australia]
SEE ALSO dtruss(1M), dtrace(1M), truss(1)version 1.00 Sep 22, 2005 procsystime(1m)
Hi ,
I am trying to make a script which can count the errors in the log each time it scans. When ever it scans & counts the errors, it should do the comparison with the last count.
If the number is > than last time, you have errors.
If the number is < last time, ignore (new log file).
If... (1 Reply)
Dear All,
Writing a script in which I want to run a command in background and keep it running even script is finished.
I have tried like below,
`truss -p <pid> >> & /tmp/log &`
But doesnt work.. script goes running and nothing in log file. (7 Replies)
I got a issue with one binary application when i run it it will not run and after doing a truss i noticed the following errors in the log dose anyone know what the errors are about and how to fix them?, I also inserted a image of the error log in case their is something i have mists, thank you for... (19 Replies)
This question is asked in an interview today that I have to return output with each PID number and the count of each PID number logged today. Here is the script that I have written. Can you confirm if that would work or not. The interviewer didn't said if my answer is correct or not. Can someone... (5 Replies)
I'm getting the following output from a truss operation of a PID from an application that will not start properly, something with the writing to an archive. Here is the output:
open("arch/chkpt.arch", O_RDWR) Err#13 EACCES
open("arch/chkpt.arch", O_RDWR|O_CREAT|O_TRUNC, 0666)... (6 Replies)