3 ms·
> SIP doesn’t block dtrace. » dtrace echo dtrace: system integrity protection is on, some features will not be available dtrace: failed to initialize dtr
by deathanatos 3y ago
> SIP doesn’t block dtrace.
» dtrace echo
dtrace: system integrity protection is on, some features will not be available
dtrace: failed to initialize dtrace: DTrace requires additional privileges
- GrumpySloth 3y agoYou need to use sudo. I have SIP enabled and use DTrace regularly. Trust me, it works. (As long as you use it properly, i.e. not like an alias for strace the way you tried here.)
- deathanatos 3y ago> You need to use sudo. Sigh. » sudo dtrace echo hi dtrace: system integrity protection is on, some features will not be available dtrace: no probes specified (last command returned 1.) » sudo dtruss echo hi dtrace: system integrity protection is on, some features will not be available dtrace: failed to execute echo: Operation not permitted (last command returned 1.) » There's a host of problems that come with that, though: how do you then execute the tracee? If your problem is nice & simple and works under root, that's great I suppose, but it always seems like some access to $HOME destroys that possibility for me. Then there's that, even ignoring all that … I've still yet to figure out a minimal example? Give me a barebones minimal example. Every article I hit on this tool is right into space shuttle levels of complexity. That's what makes strace the winner. > As long as you use it properly, i.e. not like an alias for strace the way you tried here. … "you're holding it wrong."