以 PDF 格式下载本书 (3221 KB)
Using DTrace in a Non-Global ZonePerform the following steps to use DTrace functionality as described in Running DTrace in a Non-Global Zone.
|
global# zonecfg -z my-zone zonecfg:my-zone> set limitpriv="default,dtrace_proc,dtrace_user" zonecfg:my-zone> exit |
Depending on your requirements, you can add either privilege, or both privileges.
Boot the zone.
global# zoneadm -z my-zone boot |
Log in to the zone.
global# zlogin my-zone |
Run the DTrace program.
my-zone# dtrace -l |