This dtrace script will fire every time any function is called in libx by process 12345.
dtrace -q -n 'pid12345:libx::entry { printf("probe fired"); }'
But what I really want is to detect function calls in several libraries, say libx, liby, and libz... something like:
dtrace -q -n 'pid12345:libx,liby,libz::entry { printf("probe fired"); }'
Does anyone know if this is possible using the pid provider - or any other provider?
Thanks!