diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-03-02 15:06:06 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-04-06 17:23:56 +0200 |
commit | 84f2e9b3b1bb3990a7bea7b9d45768ee1a820804 (patch) | |
tree | e54e85c3fc740ce29d461933ec977f71fd858652 /erts/emulator/beam | |
parent | 977d50fcbc119a2d6d3bf2512605e62a3f22741b (diff) | |
download | otp-84f2e9b3b1bb3990a7bea7b9d45768ee1a820804.tar.gz otp-84f2e9b3b1bb3990a7bea7b9d45768ee1a820804.tar.bz2 otp-84f2e9b3b1bb3990a7bea7b9d45768ee1a820804.zip |
erts: Extend erlang:system_info/1 with lttng
Let erlang:system_info(dynamic_trace) be able to return 'lttng' if enabled.
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_bif_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index 5c03e33b74..dd796199bb 100644 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -2751,6 +2751,9 @@ BIF_RETTYPE system_info_1(BIF_ALIST_1) #elif defined(USE_SYSTEMTAP) DECL_AM(systemtap); BIF_RET(AM_systemtap); +#elif defined(USE_LTTNG) + DECL_AM(lttng); + BIF_RET(AM_lttng); #else BIF_RET(am_none); #endif |