How to Trace Unix System Calls (文档 ID 110888.1)

前端之家收集整理的这篇文章主要介绍了How to Trace Unix System Calls (文档 ID 110888.1)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Applies to:
Oracle Database - Enterprise Edition - Version 7.0.16.0 and later
Generic UNIX
Checked for relevance on 08-FEB-2013
Purpose

To identify the Unix command necessary to trace Unix system calls for a process.
Scope

This article is intended for use by any Unix user who needs to provide Oracle Support with O/S level trace information from a process. The commands listed here may be not generally available within the operating system,and so you should consult your hardware/Operating System supplier to purchase/license use of these tools if they are not available.
Details
How to Trace Unix System Calls for a Process

The following platforms support a trace utility that can be used to identify what a process is doing:
@H_404_16@

O/S Version@H_404_16@

Trace Utility@H_404_16@

Oracle/Sun Solaris,Unixware 7.0@H_404_16@

truss,e.g.: @H_404_16@

$ truss -aefo <output file> <executable> @H_404_16@

$ truss -rall -wall -p <PID>@H_404_16@

HP/UX 11@H_404_16@

tusc,e.g.: @H_404_16@

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

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

IBM AIX 4.x@H_404_16@

trace,e.g.:@H_404_16@

Log on as root.@H_404_16@

# trace -a -L 4000000 -T 2000000 -o ./trace.out;@H_404_16@

# owsctl start admin@H_404_16@

# trcstop@H_404_16@

# trcrpt -O exec=on,pid=on trace.out > trcrpt.1@H_404_16@

Or if present sctrace,'sans-serif';color:#365F91">$ sctrace -Amo <output file> <executable>@H_404_16@

$ prpt -p <trace file> <executable>@H_404_16@

Note:@H_404_16@@H_404_16@

'sctrace' has been discontinued by Veritas Software @H_404_16@

Corporation Inc. (formerly The Kernel Group Inc) @H_404_16@

as off Jan. 8,2002.@H_404_16@

IBM AIX 5L@H_404_16@

404_16@

$ truss -aefo <output file> <executable>@H_404_16@

Linux@H_404_16@

strace,ktrace/kdump,ltrace e.g.:@H_404_16@

$ strace -fo <output file> <executable>@H_404_16@

SGI IRIX 6.x@H_404_16@

par,'sans-serif';color:#365F91">$ par -siSSo <output file> <executable>@H_404_16@

HPTru64 Unix@H_404_16@

trace or truss,'sans-serif';color:#365F91">$ trace -fo <output file> <executable>@H_404_16@

$ truss -aefo <output file> <executable>@H_404_16@

Apple Mac OS X@H_404_16@

ktrace/kdump,'sans-serif';color:#365F91">$ script kdump.out@H_404_16@

$ /usr/bin/ktrace -adi <command>@H_404_16@

$ /usr/bin/kdump@H_404_16@

$ exit@H_404_16@

$ more kdump.out@H_404_16@

Sequent Dynix/PTX@H_404_16@

$ truss -aefo <output file> <executable>@H_404_16@

Data General DG/UX R4.20MU06@H_404_16@

dg_trace,'sans-serif';color:#365F91">$ dg_strace -fxto <output> [<executable>] [-p <pid>]@H_404_16@

ReferencesNOTE:1812.1 - TECH: Getting a Stack Trace from a CORE file on UnixNOTE:314533.1 - Installing TUSC for HP-UX 11.00,11.11,11.23,11.31(PA-RISC and Itanium) on the fly as a non-root userNOTE:28588.1 - TECH: Using Truss / Trace on Unix@H_404_16@

猜你在找的Bash相关文章