Before you can use the er_kernel utility for kernel profiling, you need to set up access to the DTrace driver.
Normally, the DTrace driver is restricted to user root. To run er_kernel utility as a user other than root, you must have specific privileges assigned, and be a member of group sys. To assign the necessary privileges, add the following line to the file /etc/user_attr:
username::::defaultpriv=basic,dtrace_kernel,dtrace_proc |
To add yourself to the group sys, add your user name to the sys line in the file /etc/group.