본문 바로가기
UniX

UNIX system process trace 방법

by 타마마임팩트_쫀 2014. 4. 14.
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.:

$ tusc -afpo <output file> <pid> <executable>

(See: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.0/)

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>]

'UniX' 카테고리의 다른 글

SED 명령어  (0) 2014.10.13
OS 기본  (0) 2014.03.11
HP-UX, IBM-AIX, SUN-Solaris 명령어 비교  (0) 2012.06.21
vi editor  (0) 2012.06.19
raw device to file system(dd copy) [펌]  (0) 2010.04.07