I am trying to learn some tricks using "trace" (or dtrace or strace or truss), so I using the command:
trace -d [random PID]
I am getting the following error messages:
trace error: trace facility failure, KERN_KDREMOVE: Permission denied
or
Failed to open code description file [PID]
I am not sure about the flag and is probably different in other OS (I am using MacOS with Darwin kernel), but the main functions should be the same.
Could anyone provide a short tutorial on this tool?