OpenSolaris
Collectives
Discussions
Documentation
Download
Source Browser
Free CD
Log-in
|
en
Project dtrace-chime
:
Adding New Displays
Top Menu
Show
:
Comments
Attachments
History
Information
Print
:
Print
Print preview
Export as PDF
Export as RTF
Export as HTML
Export as XAR
Wiki code for
Adding New Displays
Hide Line numbers
1: == Adding New Chime Displays 2: === Contents 3: * [[Overview>>#Overview]] 4: * [[Adapting an Existing DTrace Program>>#Adapting_an_Existing_DTrace_Program]] 5: * [[New Display Wizard>>#New_Display_Wizard]] 6: * [[Generating Displays On The Command Line>>#Generating_Displays_On_The_Command_Line]] 7: * [[XML Properties>>#XML_Properties]] 8: 9: == Overview 10: 11: To add a new Chime display, you need to describe the display in XML as a set of properties recognized by Chime. Chime provides a [[wizard>>wizard]] as well as [[command line options>>cmdgen]] to generate the XML for you, and display properties are documented [[here>>xml]] in case you need to edit the XML by hand. Once you add a {{code}}.xml{{/code}} description to {{code}}/opt/OSOL0chime/displays{{/code}}, Chime will pick it up automatically and add an entry to the **Traces** list in the main window. Subdirectories under the {{code}}displays{{/code}} directory are also loadable from the Chime menu and the **Trace Group** pulldown, so you can group displays in your own categories and subcategories. A special file, {{code}}description.xml{{/code}} may be included in any subdirectory to specify the directory properties, such as a name for the group of displays included in that subdirectory (other than the directory name, which is used by default), text to describe the group of displays, a mnemonic for the menu item that accesses the displays, and the order in which the displays should be listed (if unspecified, displays are listed alphabetically by title). 12: 13: Chime comes installed with a set of displays that you are free to change (although you may want to save the originals in a separate directory). 14: 15: ![Chime main window] (screens_a/chime.gif) 16: 17: Alternatively, you can create your displays in any directory specified on the command line with the {{code}}-d{{/code}} option, and Chime will treat the specified directory as if it were the {{code}}displays{{/code}} directory. 18: 19: To see display creation in action, you can watch this [[screencast>>http://frsun.downloads.edgesuite.net/sun/07C00941]] (22 min 28 sec) that introduces Chime and demonstrates how to use it. 20: 21: For a good introduction to DTrace, I found Bryan Cantrill’s [[Demo’ing DTrace>>http://blogs.sun.com/bmc/entry/demo_ing_dtrace]] blog very helpful, and good for an occasional re-read. 22: 23: == Adapting an Existing DTrace Program 24: 25: There are few important observations to make about your DTrace program: 26: 27: 1. Since Chime is a tool for visualizing DTrace aggregations, it follows that your program must include at least one aggregation. See the [[Aggregations>>http://docs.sun.com/app/docs/doc/817-6223/6mlkidlh7?a=view]] chapter of the //Solaris Dynamic Tracing Guide// for details about DTrace aggregations. 28: 1. If you use the **printa()** action on an aggregation, that aggregation will thereafter be **unavailable to Chime**. Typically, {{code}}printa(){{/code}} is found in a {{code}}profile{{/code}} probe such as {{code}}tick-1sec{{/code}}. You should delete these {{code}}tick{{/code}} clauses from your program. Instead of printing your aggregations, you are now relying on Chime to display them. 29: 1. You can have multiple aggregations in your program. However, Chime assumes that all aggregations in the same program **share the same tuple** (aggregation key), or at least almost the same: you can specify two different tuples, A and B, such that B starts with A. For example: @[execname] and @[execname, ppid]. If two aggregations in your program have completely different tuples, the results in Chime are currently undefined. 30: 31: For examples of scripts from the [[DTraceToolkit>>http://www.brendangregg.com/dtrace.html#DTraceToolkit]], see the following blog entries: 32: 33: [[Chime and the DTraceToolkit>>http://blogs.sun.com/tomee/entry/chime_and_the_dtracetoolkit]] 34: [[Chime and the DTraceToolkit, Part 2>>http://blogs.sun.com/tomee/entry/chime_and_the_dtracetoolkit_part]] 35: 36: == New Display Wizard 37: 38: Chime provides a wizard to create or edit display descriptions. You can access the wizard from the menu (**File \| New Display ...**), the  toolbar button, or by using the {{code}}-W{{/code}} command line option. 39: 40: See the [[New Display Wizard>>wizard]] page for details, including an example walk-through. 41: 42: == Generating Displays On The Command Line 43: 44: Chime will generate displays dynamically on the command line if you specify a program that meets the criteria listed above. The program may be specified as a string using the {{code}}-n{{/code}} option or as a file using the {{code}}-s{{/code}} option, just as with the {{code}}dtrace(1M){{/code}} command. You can even specify DTrace options for the display using {{code}}-x_name_=//value//{{/code}} and {{code}}-Z{{/code}}, just as you would with {{code}}dtrace(1M){{/code}}. The column headers will be generated automatically from the aggregation key and the aggregation names in your program, although you can specify your own column headers using the {{code}}-H{{/code}} option followed by a comma-separated list in quotes. The {{code}}-T{{/code}} option specifies a title to appear in the display’s title bar. 45: 46: See the [[Command Line>>cmdgen]] page for details. 47: 48: == XML Properties 49: 50: You can also specify display properties by hand in the display’s {{code}}.xml{{/code}} description file. Here’s a [[simple example>>xml#A_Simple_Display_Example]] to get you started; you can find other (less simple) examples installed in the {{code}}/opt/OSOL0chime/displays{{/code}} directory. 51: 52: See the [[XML Properties>>xml]] page for a complete description of each available property.
Search
Collectives
Community Group
Academic and Research
Accessibility
Advocacy
Appliances
Approachability
Architecture Process and Tools
BrandZ
Chinese Users
Community Advisory Board
Databases
Desktop
Device Drivers
Distribution
Documentation
DTrace
Emerging Platforms
Fault Management
Games on OpenSolaris
HA Clusters
HPC Developer
Installation and Packaging
Internationalization and Localization
Laptop
Logical Domains
Modular Debugger (MDB)
Networking
NFS
Observability
OpenSolaris Governing Board (OGB)
OpenSolaris Printing
OS/Net (ON)
Performance
Power Management
PowerPC
Security
Service Management Facility (smf(5))
Software Porters
Solaris Volume Manager
Storage
Systems Administration Community Group
Testing
Tools Home
Unix File Systems (UFS)
Website Community
X Window System
Xen
ZFS
Zones
Project
ADSL Modem Enhancement
ARC Process Definition
ARM Platform Port
Automatic Data Migration
BIND Update
Bluetooth Stack & Drivers
Brocade FC HBA - Initiator
Brocade FC HBA - Target
Brussels - unified network link configuration
Caiman, Solaris Install Revisited
Celeste
Český portál
Chime Visualization Tool for DTrace
CIFS client for Solaris
CIFS Server
Clearview: Network Interface Coherence
Cluster Agent: Informix Dynamic Server
Cluster Agent: OpenSolaris Container
Cluster Agent: OpenSolaris xVM
Cluster Agent: Oracle E-Business Suite
Cluster agent: PostgreSQL
Cluster Agent: Samba
Cluster Agent: Tomcat
CMT
Coarse Data Flow Parallelism
Colorado: Open HA Cluster on OpenSolaris
Command Assistant
Common Array Manager
Companion - /opt/sfw: Free and Open Source software
COMSTAR: Common Multiprotocol SCSI Target
Content
Contest
CPU Observability
Credentials Process Groups
Crossbow: Network Virtualization and Resource Control
Crypto KMS Agent Toolkit
Cryptographic Framework
Data Migration Manager
Data Tethers
Deutsches Portal
Device Detection Tool
Device Driver Utility
Device Manager
Device Mapper
Direct Rendering Infrastructure & 3D drivers
DTrace Guide
Duckwater: Simplified name services management
Easy Tools
Emancipation
Emulex Fibre Channel Device Driver
Emulex Advanced Ethernet Device Driver
Enable/Enhance Solaris support for Intel Platform
Enhance the support of USB webcams
Enhanced SMF Profiles
Enhancements for AMD-based Platforms
Erlang DTrace Integration
Ethernet bridge module for Solaris
Evaluate Conary
Events Registry
Ext3 file system support
F/OSS Package Base
Facilitation
Fibre Channel over Ethernet
Fine Grained Access Policy (FGAP)
Fingerprint Authentication
Flexible Mandatory Access Control
Forensic Tools
Fully Open X Project
Fuse on Solaris
gcore
Generic Machine Check Architecture Improvements
Google SOC
HA-JBoss
HA-MySQL
Hadoop Live CD
Hitachi
HoneyComb Fixed Content Storage
HPC Stack
Image Packaging System
Improved Performance MIB
Indiana
Innovation Awards
Input Method
Intel Graphics
Internet Key Exchange, version 2
Interrupt Resource Management
IP Datapath Refactoring
IP over Infiniband
IPsec Tunnel Reform
iSCSI Extensions for Remote DMA (iSER)
iSNS Server
JeOS - Just enough Operating System
JKstat - a java binding for libkstat
Journaled File System (JFS)
K Desktop Environment
Kerberos
Kernel Sockets
Kernel SSL Enhancements
Key Management Framework
Korn Shell 93 integration/migration project
Labeled IPsec
LatencyTOP
Layer 2 Filtering
LDoms Manager
Lending
libMicro - portable microbenchmarks
Link Layer Discovery
Live Media: Technologies for distributions running from CD and other media
Locale Data
lofi compression and cryptography support
lx64 brand
Media Management System
Mega_sas
Mexico
MilaX minimal Live Distribution
MIPS Platform Port
Mozilla DTrace
MRSL.NONsharedDevice
Multi-lingual Glossary
Multi-pathing software (MPxIO)
Multiple disk sector size support
Multiple DOI
Muskoka: An open repository for OpenSolaris technical content
Navigator
Nemo: A Framework for High-Performance Networking
Network Auto-Magic
Network Data Management Protocol
Network MIBs
Network Storage
Network Time Protocol (NTP)
Nevada Globalization
New Design of 4over6 Mechanism Based on OpenSolaris
NFS RDMA transport update and performance analysis
NFS Server in non-Global Zones
NFS version 4.1 pNFS
NFSv4 namespace extensions
Nightingale: Port Songbird to OpenSolaris
NPort ID Virtualization (NPIV)
NUMA
Object Storage Device (OSD) support for Solaris
OHACGE Script Based Plug-in
ON/Nevada (ONNV) Project
Open Development Infrastructure
Open HA Cluster Utilities
Open Sound System
OpenGrok
OpenPegasus CIM Server
OpenRTI
OpenSolaris Busybox
OpenSolaris Desktop
OpenSolaris Hispano
OpenSolaris Security Audit
OpenSolaris support for the QEMU processor emulator: host and guest
PEF: Packet Event Framework
Performance Wrappers
Pkgfactory
Polski Portal
Portail Francophone
Portal Brasil
Portals
Power Management Usability Interfaces
Presto: Automatic Printing Configuration
Printable Many Page Solaris Manuals
Promise SuperTrak RAID HBA Driver
QLogic Converged Network Adapter GLDv3 NIC Driver
Quagga Routing Protocol Suite Integration
RAID Configuration Utility
RBridge (IETF TRILL) support
RDMA Offload Framework
Reno: Login Process Enhancements for Interop
Resource Management
s10brand
SAM/QFS
SCM Migration Project
SCSI RDMA Protocol
SDcard Drivers
Sensor Abstraction Layer
Session Initiation Protocol
SFW
Shell: bourne shell, korn shell, C shell, etc.
Sierra: Intel WiFi Chipsets Support
Simple Panels
SM-HBA Based SAS HBA Management
SMF Documentation
Solaris iSCSI Target
Solaris PowerPC Port
SourceJuicer
Sparks: name service switch/nscd enhancements
Squashfs
Star integration/migration project
Starfish
Starter Kit
Storage Power Management
Sun Security Toolkit
Sun StorageTek Availability Suite
Support for OpenFabrics User Verbs / API on OpenSolaris OS
Support gcc4/GCCfss in Solaris
Suspend/Resume
SVR4 Packaging
Systemz
Tamarack: Removable Media Enhancements in Solaris
Tesla: OpenSolaris Enhanced Power Management
Test Development
Tickless Kernel Architecture
TIPC
Trademarks
Trusted networking interface policy database for Trusted Extensions
Trusted Platform Module support
Use Case
Validated Execution Project
Virtual Console
Virtual Network Machines
Visual Panels
Visualization for HPC
Volo
VRRP: Virtual Router Redundancy Protocol Implementation
VSCAN service
Web Stack
Website
Winchester: Schema mapping and ID mapping for AD Interoperability
Wireless USB Support
Wireless Wide Area Network
X Consolidation
x86 Generic FMA Topology Enumerator
Xen Gate
Xfce: A lightweight desktop environment
ZFS Boot and Install
ZFS on disk encryption support
Zone Manager
Zone Statistics
Русский портал
البوابة العربية
भारतीय पोर्टल
中国门户
日本ポータル
한국 포탈
User Group
Adelaide
Argentina
Arizona
Atlanta
Baltimore-Washington
Bangalore
Bangkok
Bangladesh
Beijing
Bélem
Berlin
Bhimavaram
Bloomington
Campus Ambassadors
Capital Region
Cardiff
Charlotte
Chengdu
Chennai
Chihuahua
Chile
Cleveland
Colombia
Columbus
Connecticut
Cracow
Czech
Dallas/Ft. Worth
Danish
Delaware
Edinburgh
Egypt
Finland
Florida
Front Range
FuZhou
Great Lakes
Greece
Hangzhou
Hawaii
HeFei
Houston
Hyderabad
Indonesia
Irish
Israel
Italian
Jinan
Kabul
Kansas City
Latvia
London
Madurai
Manchester
Mato Grosso
Melbourne
Minas Gerais
Minnesota
Montreal
Moscow
Mumbai
Munich
NEA
Netherlands
New England
New York City
New Zealand
NIT Hamirpur
Noroeste
Oklahoma City
Osnabrück
Peru
Philadelphia
Piaski
Pittsburgh
Porto Alegre
Puget Sound
Pune
Queensland
Research Triangle Park
Romania
Russia
San Antonio
San Diego
San Francisco
São Paulo
Scottish
Serbia
Shanghai
Shenzhen
Silicon Valley
Singapore
Slovak
South African
Southern Connecticut
St. Louis
Sweden
Switzerland
Sydney
Szczecin
Taiwan
Tecum
Thames Valley
Tokyo
Toronto
Trondheim
Tulsa
Turkey
Ukraine
University of Melbourne
Vale do Paraíba
Vancouver
Venezuela
Welsh - Cymru
Wisconsin
Xi'an
Subsites
Code Reviews
Code Repositories
Package Search
Bugster
Bugzilla
Test Machines
Planet
Mailing Lists
Elections & Polls
ARC Case Logs
Source Juicer
Package Factory
User Authentication
Project dtrace-chime Pages
Articles
Change Log
Displays
Installation
Java DTrace API
jdtrace Example
JavaOne 2007 Screenshots
Adding New Displays
Command Line
New Display Wizard
XML Properties
screens_c