mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
truss: add page (#2907)
This commit is contained in:
parent
033a2bc1d9
commit
452beb4e15
1 changed files with 24 additions and 0 deletions
24
pages/sunos/truss.md
Normal file
24
pages/sunos/truss.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# truss
|
||||
|
||||
> Troubleshooting tool for tracing system calls.
|
||||
> SunOS equivalent of strace.
|
||||
|
||||
- Start tracing a program by executing it, following all child processes:
|
||||
|
||||
`truss -f {{program}}`
|
||||
|
||||
- Start tracing a specific process by its PID:
|
||||
|
||||
`truss -p {{pid}}`
|
||||
|
||||
- Start tracing a program by executing it, showing arguments and environment variables:
|
||||
|
||||
`truss -a -e {{program}}`
|
||||
|
||||
- Count time, calls, and errors for each system call and report a summary on program exit:
|
||||
|
||||
`truss -c -p {{pid}}`
|
||||
|
||||
- Trace a process filtering output by system call:
|
||||
|
||||
`truss -p {{pid}} -t {{system_call_name}}`
|
Loading…
Add table
Reference in a new issue