Before you can use the er_kernel utility for kernel profiling, you need to set up access to DTrace.
Normally, DTrace 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, edit the line for your username as follows in 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.