跳过导航链接
DTrace 用户指南
Oracle Solaris 10 8/11 Information Library (简体中文)
搜索范围:
本文档
整个文档库
DTrace 用户指南
2011 年 8 月
本书介绍了在 Solaris 10 中引入的动态跟踪功能。介绍了 DTrace 框架的基本功能。本书包含基本 DTrace 功能的大量示例。
文档信息
前言
1. 简介
DTrace 功能
体系结构概述
DTrace 提供器
DTrace 探测器
DTrace 提供器
DTrace 探测器
DTrace 谓词
DTrace 操作
D 脚本语言
2. DTrace 基础知识
列出探测器
在 DTrace 中指定探测器
启用探测器
DTrace 操作基础知识
数据记录操作
trace()
函数
tracemem()
函数
printf()
函数
printa()
函数
stack()
函数
ustack()
函数
jstack()
函数
破坏性操作
处理破坏性操作
stop()
函数
raise()
函数
copyout()
函数
copyoutstr()
函数
system()
函数
内核破坏性操作
breakpoint()
函数
panic()
函数
chill()
函数
DTrace 聚合
DTrace 聚合语法
3. 使用 D 语言编写脚本
编写 D 脚本
可执行的 D 脚本
D 文本字符串
创建使用参数的 D 脚本
DTrace 内置变量
4. 使用 DTrace
性能监视
使用
sysinfo
提供器检查性能问题
跟踪用户进程
使用
copyin()
和
copyinstr()
子例程
避免错误
消除
dtrace
干扰
syscall
提供器
ustack()
操作
pid
提供器
用户函数边界跟踪
跟踪任意指令
匿名跟踪
匿名启用
声明匿名状态
匿名跟踪示例
推理跟踪
推理接口
创建推理
使用推理
提交推理
放弃推理
推理示例
索引
C
D
P
S
U
操
跟
函
匿
破
示
数
探
推
谓
用
子
字