aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-03-02 15:06:06 +0100
committerBjörn-Egil Dahlberg <[email protected]>2016-04-06 17:23:56 +0200
commit84f2e9b3b1bb3990a7bea7b9d45768ee1a820804 (patch)
treee54e85c3fc740ce29d461933ec977f71fd858652
parent977d50fcbc119a2d6d3bf2512605e62a3f22741b (diff)
downloadotp-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.
-rw-r--r--erts/emulator/beam/erl_bif_info.c3
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