How to Use DTrace in a Non-global Zone
1. Use the zonecfg limitpriv property to add the dtrace_proc and dtrace_user privileges.
global# zonecfg -z my-zone
zonecfg:my-zone> set limitpriv="default,dtrace_proc,dtrace_user"
zonecfg:my-zone> exit
Note –
Depending on your requirements, you can add either privilege, or both privileges.
2. Boot the zone.
3. global# zoneadm -z my-zone boot
Log in to the zone.
global# zlogin my-zone
4. Run the DTrace program.
my-zone# dtrace -l
Note:
* Oracle Solaris DTrace is a comprehensive, advanced tracing tool for troubleshooting systemic
problems in real time.
* DTrace helps you understand a software system by enabling you to dynamically modify the
operating system kernel and user processes to record additional data that you specify at locations of
interest, called probes.
Reference: System Administration Guide: Oracle Solaris Containers-Resource Management and
Oracle Solaris Zones, Using DTrace in a Non-Global Zone