12.07.2015 Views

dtrace_tips

dtrace_tips

dtrace_tips

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Gotcha: Using system● system is processed at user-level –there will be a delay between probefiring and command execution,bounded by the switchrate●Be careful; it's easy to accidentallycreate a positive feedback loop:●<strong>dtrace</strong> -n 'proc:::exec{system(“/usr/ccs/bin/size %s”, args[0])}'●To avoid this, add a predicate to above:●/!progenyof($pid)/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!