1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/sunos/truss.md

26 lines
649 B
Markdown
Raw Normal View History

2019-04-14 18:51:21 -04:00
# truss
> Troubleshooting tool for tracing system calls.
> SunOS equivalent of strace.
> More information: <https://www.unix.com/man-page/linux/1/truss>.
2019-04-14 18:51:21 -04:00
- 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}}`