--- wikisrc/tutorials/how_to_enable_and_run_dtrace.mdwn 2018/07/22 17:18:06 1.26 +++ wikisrc/tutorials/how_to_enable_and_run_dtrace.mdwn 2019/07/21 12:28:26 1.27 @@ -101,7 +101,10 @@ Run the hello world script: dtrace: script './hello.d' matched 1 probe CPU ID FUNCTION:NAME 0 1 :BEGIN Hello world - + +The same script could be executed as a one liner on the shell, using + + dtrace -n 'BEGIN { trace("Hello world"); exit(0); }' ## A more complex example