Linux DTrace implementations are currently very young and lack some important features (and are by no means ready for use in production). In particular, the DTrace implementation you use (Paul Fox's) has not done much if there is any work to support user space tracking. Therefore, you cannot do this under Linux (right now).
If you want this to work, you will need to use an operating system with a more complete implementation of DTrace. It is best to use one of Illumos derivatives (such as OmniOS , SmartOS or OpenIndiana ).
You must re-read the Prerequisites section of the article that you linked to . It says that you also need to make sure that you are using 32-bit NodeJS with DTrace support at compile time.
(Mac OS X has a good DTrace implementation, but according to the article , it does not support the ustack helpers, which are necessary for this example.)
source share