Created
September 15, 2011 13:48
-
-
Save videlalvaro/1219266 to your computer and use it in GitHub Desktop.
rabbitmq routing probes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erlang$target:::function-entry | |
/copyinstr(arg1) == "rabbit_exchange_type_direct:route/2"/ | |
{ | |
printf("%s %s", probemod, probefunc); | |
self->traceIt = 1; | |
} | |
erlang$target:::function-entry | |
/self->traceIt/ | |
{ | |
printf("%s", copyinstr(arg1)); | |
} | |
syscall:::entry | |
/self->traceIt/ | |
{ | |
printf("%s %s", probemod, probefunc); | |
} | |
erlang$target:::function-return | |
{ | |
self->traceIt = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run it like this: sudo dtrace -s route.d -p
pgrep beam.smp
This only works with this OTP fork: https://github.com/dustin/otp/wiki/DTrace