Jim Fiori - Technical Consultant
2006-Jan-17 18:09 UTC
[dtrace-discuss] implementing timer-based scripts with dtrace_user+dtrace_proc
Hi, I''ve got a scenario where I''d like to have users run DTrace, but without the dtrace_kernel privilege. As documented, I can write probes using the profile provider with these privileges: % ppriv $$ 24864: -csh flags = <none> E: basic,dtrace_proc,dtrace_user I: basic,dtrace_proc,dtrace_user P: basic,dtrace_proc,dtrace_user L: all % dtrace -n ''tick-1{}'' dtrace: description ''tick-1'' matched 1 probe But then I get nothing, unless I run a busy loop program. Now I understand this is behaving as documented (probe only fires if a process I have permissions to is running on CPU), but not as I had expected/hoped. Is there any way of doing basic interval-based profiling without dtrace_kernel? If not, anything coming? Jim