没有合适的资源?快使用搜索试试~ 我知道了~
Oracle Solaris 10 Solaris DynamicTracing Guide-388
需积分: 5 0 下载量 139 浏览量
2023-06-28
11:53:45
上传
评论
收藏 1.93MB PDF 举报
温馨提示
试读
388页
Oracle Solaris 10 Solaris DynamicTracing Guide-388
资源推荐
资源详情
资源评论
Solaris Dynamic Tracing Guide
Part No: 817–6223–12
September 2008
Copyright ©2008Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without
limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries.
U.S. Government Rights – Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions
of the FAR and its supplements.
This distribution may include materials developed by third parties.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other
countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, the Solaris logo, the Java Coee Cup logo, docs.sun.com, Java, StarOceJava, and Solaris are trademarks or registered
trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or
registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed
by Sun Microsystems, Inc.
The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering eorts of
Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the
Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license
agreements.
Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in
other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export
or reexport to countries subject to U.S. embargo or to entities identied on U.S. export exclusion lists, including, but not limited to, the denied persons and specially
designated nationals lists is strictly prohibited.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO
THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright ©2008Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A.
Sun Microsystems, Inc. détient les droits de propriété intellectuelle relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier,
et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plusieurs brevets américains ou des applications de brevet en attente aux Etats-Unis
et dans d'autres pays.
Cette distribution peut comprendre des composants développés par des tierces personnes.
Certaines composants de ce produit peuvent être dérivées du logiciel Berkeley BSD, licenciés par l'Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d'autres pays; elle est licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, le logo Solaris, le logo Java Coee Cup, docs.sun.com, Java, StarOce Java et Solaris sont des marques de fabrique ou des
marques déposées de Sun Microsystems, Inc., ou ses liales, aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des
marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés
sur une architecture développée par Sun Microsystems, Inc.
L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les eorts de
pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient
une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface
d'utilisation graphique OPEN LOOK et qui, en outre, se conforment aux licences écrites de Sun.
Les produits qui font l'objet de cette publication et les informations qu'il contient sont régis par la legislation américaine en matière de contrôle des exportations et
peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations nales, ou utilisateurs naux, pour des armes nucléaires,
des missiles, des armes chimiques ou biologiques ou pour le nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou
réexportations vers des pays sous embargo des Etats-Unis, ou vers des entités gurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière
non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui
sont régis par la legislation américaine en matière de contrôle des exportations et la liste de ressortissants spéciquement designés, sont rigoureusement interdites.
LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES
SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE
IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.
110417@25097
Contents
Preface ...................................................................................................................................................21
1 Introduction .........................................................................................................................................27
Getting Started ..................................................................................................................................... 27
Providers and Probes .......................................................................................................................... 30
Compilation and Instrumentation .................................................................................................... 31
Variables and Arithmetic Expressions .............................................................................................. 33
Predicates ............................................................................................................................................. 36
Output Formatting .............................................................................................................................. 39
Arrays .................................................................................................................................................... 42
External Symbols and Types .............................................................................................................. 44
2 Types, Operators, and Expressions ................................................................................................... 47
Identier Names and Keywords ........................................................................................................ 47
Data Types and Sizes ........................................................................................................................... 48
Constants .............................................................................................................................................. 50
Arithmetic Operators .......................................................................................................................... 51
Relational Operators ........................................................................................................................... 52
Logical Operators ................................................................................................................................ 53
Bitwise Operators ................................................................................................................................ 54
Assignment Operators ........................................................................................................................ 54
Increment and Decrement Operators ............................................................................................... 55
Conditional Expressions .................................................................................................................... 56
Type Conversions ................................................................................................................................ 57
Precedence ............................................................................................................................................ 58
3
3 Variables ................................................................................................................................................61
Scalar Variables .................................................................................................................................... 61
Associative Arrays ............................................................................................................................... 62
Thread-Local Variables ...................................................................................................................... 64
Clause-Local Variables ....................................................................................................................... 66
Built-in Variables ................................................................................................................................ 68
External Variables ............................................................................................................................... 71
4 D Program Structure ...........................................................................................................................73
Probe Clauses and Declarations ........................................................................................................ 73
Probe Descriptions .............................................................................................................................. 74
Predicates ............................................................................................................................................. 75
Actions .................................................................................................................................................. 76
Use of the C Preprocessor ................................................................................................................... 76
5 Pointers and Arrays .............................................................................................................................77
Pointers and Addresses ....................................................................................................................... 77
Pointer Safety ....................................................................................................................................... 78
Array Declarations and Storage ......................................................................................................... 79
Pointer and Array Relationship ......................................................................................................... 81
Pointer Arithmetic .............................................................................................................................. 82
Generic Pointers .................................................................................................................................. 83
Multi-Dimensional Arrays ................................................................................................................. 83
Pointers to DTrace Objects ................................................................................................................ 84
Pointers and Address Spaces .............................................................................................................. 84
6 Strings ....................................................................................................................................................85
String Representation ......................................................................................................................... 85
String Constants .................................................................................................................................. 86
String Assignment ............................................................................................................................... 86
String Conversion ............................................................................................................................... 87
String Comparison .............................................................................................................................. 87
Contents
Solaris Dynamic Tracing Guide • September 20084
7 Structs and Unions ..............................................................................................................................89
Structs ................................................................................................................................................... 89
Pointers to Structs ................................................................................................................................ 91
Unions .................................................................................................................................................. 95
Member Sizes and Osets ................................................................................................................... 98
Bit-Fields ............................................................................................................................................... 99
8 Type and Constant Denitions ........................................................................................................101
Typedef ............................................................................................................................................... 101
Enumerations .................................................................................................................................... 102
Inlines ................................................................................................................................................. 103
Type Namespaces .............................................................................................................................. 104
9 Aggregations ..................................................................................................................................... 107
Aggregating Functions ...................................................................................................................... 107
Aggregations ...................................................................................................................................... 108
Printing Aggregations ....................................................................................................................... 115
Data Normalization .......................................................................................................................... 115
Clearing Aggregations ...................................................................................................................... 119
Truncating aggregations ................................................................................................................... 119
Minimizing Drops ............................................................................................................................. 121
10 Actions and Subroutines ..................................................................................................................123
Actions ................................................................................................................................................ 123
Default Action .................................................................................................................................... 123
Data Recording Actions .................................................................................................................... 124
trace() ....................................................................................................................................... 124
tracemem() ................................................................................................................................. 125
printf() ..................................................................................................................................... 125
printa() ..................................................................................................................................... 125
stack() ....................................................................................................................................... 126
ustack() ..................................................................................................................................... 127
jstack() ..................................................................................................................................... 130
Destructive Actions ........................................................................................................................... 131
Contents
5
剩余387页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功