Skip to content

Instantly share code, notes, and snippets.

@developerworks
Last active May 18, 2016 15:12
Show Gist options
  • Select an option

  • Save developerworks/3b888c93d8e17870fd8db86e9d8940b2 to your computer and use it in GitHub Desktop.

Select an option

Save developerworks/3b888c93d8e17870fd8db86e9d8940b2 to your computer and use it in GitHub Desktop.

build with kerl option is KERL_CONFIGURE_OPTIONS="--disable-native-libs --enable-vm-probes --with-dynamic-trace=systemtap --with-ssl=/usr/local --enable-hipe --enable-kernel-poll --without-odbc --enable-threads --enable-sctp --enable-smp-support --enable-sharez-zlib --enable-dynamic-ssl-lib" When i list the probes about erlang, the result is ok

ubuntu@ubuntu:~/systemtap$ stap -L 'process("/home/ubuntu/.kerl/builds/18.3_dtrace/release_18.3/erts-7.3/bin/beam.smp").mark("*")' |grep message
process("/home/ubuntu/.kerl/builds/18.3_dtrace/release_18.3/erts-7.3/bin/beam.smp").mark("message__queued") $arg1:long $arg2:long $arg3:long $arg4:long $arg5:long $arg6:long
process("/home/ubuntu/.kerl/builds/18.3_dtrace/release_18.3/erts-7.3/bin/beam.smp").mark("message__receive") $arg1:long $arg2:long $arg3:long $arg4:long $arg5:long $arg6:long
process("/home/ubuntu/.kerl/builds/18.3_dtrace/release_18.3/erts-7.3/bin/beam.smp").mark("message__send") $arg1:long $arg2:long $arg3:long $arg4:long $arg5:long $arg6:long
process("/home/ubuntu/.kerl/builds/18.3_dtrace/release_18.3/erts-7.3/bin/beam.smp").mark("message__send__remote") $arg1:long $arg2:long $arg3:long $arg4:long $arg5:long $arg6:long $arg7:long

this is a beam.smp virutal machine what was packaged by a exrm relase manager with compiler options as:

Code.compiler_options([
  debug_info: false,
  docs: true,
  ignore_module_conflict: false,
  warnings_as_errors: false
])

When i list probes with the following command, no output.

ubuntu@ubuntu:~/systemtap$ stap -L 'process("/srv/telegram/releases/0.1.0/erts-7.3/bin/beam.smp").mark("*")' |grep message
@developerworks
Copy link
Author

I should re-compile the erlang with flag --with-dynamic-trace=systemtap in the system that execute the exrm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment