Skip to content

Instantly share code, notes, and snippets.

@abbaspour
Created January 14, 2013 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abbaspour/4529549 to your computer and use it in GitHub Desktop.
Save abbaspour/4529549 to your computer and use it in GitHub Desktop.
DTrace issue fixed after privs set
$ ppriv $$
8630: -bash
flags = <none>
E: basic,dtrace_proc,dtrace_user,proc_owner,sys_resource
I: basic,dtrace_proc,dtrace_user,proc_owner,sys_resource
P: basic,dtrace_proc,dtrace_user,proc_owner,sys_resource
L: basic,contract_event,contract_observer,dtrace_proc,dtrace_user,file_chown,file_chown_self,file_dac_execute,file_dac_read,file_dac_search,file_dac_write,file_owner,file_setid,ipc_dac_read,ipc_dac_write,ipc_owner,net_bindmlp,net_icmpaccess,net_mac_aware,net_privaddr,net_rawaccess,proc_audit,proc_chroot,proc_lock_memory,proc_owner,proc_setid,proc_taskid,sys_acct,sys_admin,sys_audit,sys_mount,sys_nfs,sys_resource
$ pfexec dtrace -n 'hotspot$target:::object-alloc{ @ = quantize(arg1) }' -p 1745
dtrace: description 'hotspot$target:::object-alloc' matched 1 probe
^C
value ------------- Distribution ------------- count
536870912 | 0
1073741824 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 8945
2147483648 | 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment