By Gregg Sporar on Aug 26, 2008
I wanted to learn more about DTrace, so I started at the beginning: Chapter 1 of the Solaris Dynamic Tracing Guide. Using my installation of OpenSolaris 2008.05, I typed in the first command described, but it did not work:
$ dtrace -n BEGIN dtrace: failed to initialize dtrace: DTrace requires additional privileges
This is because in order to use DTrace, my account needs additional privileges that were not specified when the account was created. The DTrace privileges are described in Chapter 35.
To add the necessary privileges to my account, I followed these instructions on the frequently helpful Solaris Internals performance wiki. After logging out and then logging back in, the dtrace command now works for my account.