开发工具:
文件大小: 1mb
下载次数: 0
上传时间: 2019-07-29
详细说明:NULL
博文链接:https://asi12.iteye.com/blog/814440Copyright 2004 Sun Microsystems, InC, 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved
This product or docunent is protected by copyright and distributed under licenses restricting its use, copying, distribution, and
decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of
Sun and its licensors if ar
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers
Sun, Sun Microsystems, the Sun logo, Solaris, and Open Boot are trademarks or registered trademarks of Sun Microsystems, Inc, 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
UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd
Federal Acquisitions: Commercial Software -Government Users Subject to Standard License Terms and Conditions
Export Laws. Products, Services, and technical data delivered by Sun may be subject to U.S. export controls or the trade laws of other
countries. You will comply with all such laws and obtain all licenses to export, re-export, or import as may be required after delivery to
You. You will not export or re-export to entities on the most current U.S. export exclusions lists or to any country subject to U. S embargo
or terrorist controls as specified in the U.S. export laws. You will not use or provide Products, Services, or technical data for nuclear, missile
or chemical biological weaponry end uses
DOCUMENTATION IS PROVIDEDAS 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
THIS MANUAL IS DESIGNED TO SUPPORT AN INSTRUCTOR-LED TRAINING (ILT) COURSE AND IS INTENDED TO BE
USED FOR REFERENCE PURPOSES IN CONJUNCTION WITH THE ILT COURSE. THE MANUAL IS NOT A STANDALONE
TRAINING TOOL, USE OF THE MANUAL FOR SELF-STUDY WITHOUT CLASS ATTENDANCE IS NOT RECOMMENDED
Export Control Classification Number EAR99 assigned 10 September 2004
Please
Adobe posts
Recycle
Copyright 2004 Sun Microsystems Inc. 4150 Network Circle, Santa Clara, California 95054, Etats-Unis. Tous droits reserves
Ce produit ou document est protege par un copyright et distribu avec des licences qui en restreignent lutilisation, la copie, la distribution,
et la decompilation. Aucune partie de ce produit ou document ne peut etre reproduite sous aucune forme, par quelque moyen que ce soit,
sans l'autorisation prealable et ecrite de sun et de ses bailleurs de licence s'il y en a
Le logiciel detenu par des tiers, et qui comprend la technologie relative aux polices de caracteres, est protege par un copyright et licencie
par des fournisseurs de Sun
Sun, Sun microsystems, le logo Sun, Solaris, et Open boot sont des marques de fabrique ou des marques deposes de sun microsystems,
Inc, aux Etats-Unis et dans d'autres pay
Toutes les marques SPARC sont utilisees sous licence sont des marques de fabrique ou des marques deposes de sPArC International, Inc
aux Etats-Unis et dans d'autres pays. Les produits portant les marques SP ARC sont bases sur une architecture developpee par Sun
Microsystems, Inc
UNIX est une marques depose aux Etats-Unis et dans d'autres pays et licencee exclusivement par X/Open Company, Ltd
Legislation en matiere exportations. Les Produits, Services et donnees techniques livres par Sun peuvent etre soumis aux controles
americains sur les exportations, ou a la legislation commerciale dautres pays. Nous nous conformerons a lensemble de ces textes et nous
obtiendrons toutes licences exportation, de re-exportation ou dimportation susceptibles detre requises apres livraison a Vous. Vous
nexporterez, ni ne re-exporterez en aucun cas a des entites figurant sur les listes americaines interdiction deportation les plus courantes,
ni vers un quelconque pays soumis a embargo par les Etats-Unis, Ou a des controles anti-terroristes, comme prevu par la legislation
americaine en matiere dexportations. Vous nutiliserez, nine fournirez les Produits, Services ou donnees techniques pour aucune utilisation
finale liee aux armes nucleaires, chimiques ou biologiques ou aux missiles
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'APTITUDEA UNE
UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON
CE MANUEL DE REFERENCE DOIT ETRE UTILISE DANS LE CADRE D'UN COURS DE FORMATION DIRIGE PAR UN
INSTRUCTEUR (ILT). IL NE S'AGIT PAS D'UN OUTIL DE FORMATION INDEPENDANT. NOUS VOUS DECONSEILLONS DE
L'UTILISER DANS LE CADRE D'UNE AUTO-FORMATION
Adobe postscript
Recycle
Table of contents
About this course
n日日m日■日■日日■■鑫
Preface-xi
Course goals
Preface-xi
Topics Not Covered
Preface-xiii
How Prepared are you?..................Preface-xiv
Introductions......................... Preface-xV
How to use Course materials
Preface-xvi
Conventions…
Preface-xV
Typographical Conventions………. reface-xviii
DTrace Fundamentals
1-1
Objectives...1-1
Relevance
·非·。鲁,。鲁·。音中鲁非。鲁·。普··看普
1-2
Additional resources
1-3
DTrace Features. ................................................................................1-4
Transient Failures................1-4
Debugging transient Failures
DTrace Capabilities...........1-6
DTrace Architecture
…1-7
Probes and probe providers .......1-7
DTrace Components
鲁非看·音。音,·自。普非
·····.·············:·
1-8
DTrace Tour∴
·4非鲁。普非自。非
1-11
Listing probes
1-11
Writing d scripts.……
1-20
Using DTrace
.2-1
Objectives………
···:···············
Relevance
2-2
Additional resources
2-3
DTrace Performance Monitoring Capabilities.......2-4
Features of the DTrace Performance monitoring
Capabilities
2-4
Aggregations.……..….…...2-4
Examining Performance Problems Using the vminfo
Provider
2-8
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A
The vminfo probes……2-9
Finding the Source of Page Faults Using vminfo
P
robes
音自申。自鲁非·l·自。鲁音··。自。看·鲁非
2-11
Examining performance Problems Using the sysinfo
Provider
2-17
The sysinfo probes ........................2-18
USing the quantize Aggregation Function With
the sysinfo probes
·“·····“··
.2-21
Finding Cross-Calls…………….2-22
Examining performance Problems using the io
Provider
2-26
The io probes…......….........-26
Information available when io probes fire. ....................2-27
Finding I/ O Problems…
2-32
Obtaining System Call Information…………………2-36
The sysco1 1 Provider…
。鲁。·“自。鲁·。着·B非。鲁番。B·鲁。鲁,自非非。·。鲁鲁
2-36
D Language variables……………,,,,,.,,.,..,2-43
Associative arrays.......
2-44
Thread- Local variables∴….......2-45
Timing a system call
2-46
Following a System Call
2-48
Creating D Scripts That Use Arguments
2-53
Built- in macroⅤ ariables∴2-54
PID Argument Example
2-55
Executable Name Argument Example………2.56
Custom Monitoring tools………………….259
Debugging Applications With dTrace.
1■■■■■■■■■■■日■自日■■■
3-1
Objectives…
3-1
Relevance
3-2
Additional resources
·.···:·..···:··········
鲁鲁非
3-3
Application Profiling ............................3-41
The pid Provider......
··;·“
The profile provider...........3-20
Application variables
·非非
………….3-29
Displaying process global variables..........3-29
Displaying library global variables……………334
Transient System Call errors
3-37
User Stack Traces on System Call Failures………………3-38
Processes using a lot of system Time
3-40
Open Files
3-44
Accessing System Call Pointer Arguments……
3-44
Displaying names of files being opened.........3-47
ynamic Performance Tuning and Troubleshooting With dTrace
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A
Finding System Problems With DTrace
41
Objectives....
4-1
Relevance............ 4-2
Additional resources∴…..........
4-3
Accessing Kernel variables
.4-4
USing the d language to Access Kernel Symbols………-4
Monitoring Kernel variables…………-5
Accessing Kernel Data Structures
4-6
Accessing lock Contention Information……4-12
Displaying Read Call Information……………………………4-18
Tracing read Calls System-Wide........4-18
Tracing Read Calls Using the iosnoop d D Script..4-21
Aggregating Read Data…………………………………4-21
Using the Anonymous Tracing Facility
4-24
Creating an Anonymous Enabling……………4-24
Performing Anonymous Tracing………
4-25
Using the Speculative Tracing Facility……4-28
Speculative Tracing Functions
4-29
Speculative Tracing Example
4-30
Application Debugging With Speculative Tracing....4-32
DTrace privileges
4-36
USing the Least privilege Facility…………4-36
Kernel- DestructiⅤ e actions∴......4-37
Setting dtrace User privileges
4-37
Setting dtrace Process Privileges……………4.
Summarizing the dtrace Privilege levels……….4-45
Troubleshooting DTrace Problems.……,…,…,,…,…,……51
Objectives
Relevance
Additional resources
鲁··音···。··。非D音·,。自非。非申自非非非。·非自·非
··.4·:··
Minimizing dtrace performance Impact…………………….15-4
Limiting Enabled Probes……
5-4
USing Aggregations…….….….….….…….….155
Using Cacheable Predicates………………
Using and Tuning dTrace Buf
5-8
Principal buffers
5-8
Principal buffer policies
.:·····:···
曹专鲁
DTrace Option settings
The switch Buffer policy
5-10
The fi11 Buffer policy……………
5-12
The ring Buffer policy
5-13
Other buffers
5-14
Buffer Resizing policy……
5-14
Debugging DTrace Scripts………
5-15
avoiding Syntax errors in D Scripts
5-15
Avoiding run- -Time Errors in D Scripts………………5-17
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A
Actions and
Default action
A-2
Data Recording Actions……………A-3
The void trace( expression) Action……………2-3
The void tracemem(address, size t nbytes)
Action. .
A-3
The void printf(string format, .. )Action...A-3
The printa actior
A-10
The stack( Action…
A-12
The ustackO Action
A-13
Destructive actions
A-16
Process Destructive actions
非鲁音非音看·普··。D鲁音鲁,非非非着音,非。音。鲁
A-16
Kernel destructive Actions.................A-17
pecial Actions
A-20
Actions associated With Speculative tracing
The void exit( int status) Action…….∴…A4-20
-21
Subroutines
A-21
The void *alloca(size t size)Subroutine....A-21
The string basename(char *str) Subroutine....A-22
The void bcopy(void *src, void *dest, size t
size)Subroutine
.A-22
The string clearpath(char *str) Subroutine...A-22
The void copyin(uintptr t addr, size t size)
S
subroutine
A-23
The string copyinstr(uintptr t addr)
Subroutine
A-23
The string dirname(char *str) Subroutine ....A-24
The size t msgdsize(mblk t *mp)Subroutine ...A-24
The size t msgsize (mblk t *mp) Subroutine
A-24
The int mutex owned(mutex t *mutex
Subroutine
A-24
The kthread t *mutex owner(kmutex t *mutex
Subroutine
A-24
The int mutex type adaptive(kmutex t *mutex)
Subroutine
A-25
The int progenyof( pid t pid) Subroutine……………A-25
The int rand(void) Subroutine....
A-25
The int rw iswriter(krwlock t *relock)
Subroutine
The int rw write held(krwlock t *rwlock/
A-25
Subroutine
。非·非非
A-26
The int speculation(void)Subroutine
.A-26
The string strjoin (char *strl, char xstr2)
Subroutine
A-26
The size t strlen (string str) Subroutine ....A-26
Dynamic Performance Tuning and Troubleshooting With dTrace
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A
D Built-in and macro variables
■
B-1
Built-in variables
B-2
MacroⅤ ariables
B-4
D Operators.,,.,,,…,…,…,…,…,…,…,…C-1
Arithmetic Operators
C-2
Relational Operators
logical Operators
C-4
Bitwise operate
P
ors
C-5
Assignment Operators......
C-6
Increment and Decrement Operators
C-8
Conditional expressio
C-9
X
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.