UniX
UNIX system process trace 방법
타마마임팩트_쫀
2014. 4. 14. 14:01
UNIX system process trace 방법
O/S Version |
Trace Utility |
---|---|
Oracle/Sun Solaris, Unixware 7.0 | truss, e.g.: $ truss -aefo <output file> <executable> $ truss -rall -wall -p <PID> |
HP/UX 11 |
tusc, e.g.: |
IBM AIX 4.x | trace, e.g.: Log on as root. # trace -a -L 4000000 -T 2000000 -o ./trace.out; # owsctl start admin # trcstop # trcrpt -O exec=on,pid=on trace.out > trcrpt.1 Or if present sctrace, e.g.: $ sctrace -Amo <output file> <executable> $ prpt -p <trace file> <executable> Note: 'sctrace' has been discontinued by Veritas Software Corporation Inc. (formerly The Kernel Group Inc) as off Jan. 8, 2002. |
IBM AIX 5L | truss, e.g.: $ truss -aefo <output file> <executable> |
Linux | strace, ktrace/kdump, ltrace e.g.: $ strace -fo <output file> <executable> |
SGI IRIX 6.x | par, e.g.: $ par -siSSo <output file> <executable> |
HP Tru64 Unix | trace or truss, e.g.: $ trace -fo <output file> <executable> $ truss -aefo <output file> <executable> |
Apple Mac OS X | ktrace/kdump, e.g.: $ script kdump.out $ /usr/bin/ktrace -adi <command> $ /usr/bin/kdump $ exit $ more kdump.out |
Sequent Dynix/PTX | truss, e.g.: $ truss -aefo <output file> <executable> |
Data General DG/UX R4.20MU06 | dg_trace, e.g.: $ dg_strace -fxto <output> [<executable>] [-p <pid>] |