加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 19:38:11 所属栏目:安全 来源:网络整理
导读: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

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:

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,'sans-serif';color:#365F91">$ 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 -aefo <output file> <executable>

Linux

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

$ strace -fo <output file> <executable>

SGI IRIX 6.x

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

HPTru64 Unix

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

$ truss -aefo <output file> <executable>

Apple Mac OS X

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

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

$ /usr/bin/kdump

$ exit

$ more kdump.out

Sequent Dynix/PTX

$ truss -aefo <output file> <executable>

Data General DG/UX R4.20MU06

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读