diff options
author | Peter Lemenkov <[email protected]> | 2014-11-02 19:49:55 +0300 |
---|---|---|
committer | Peter Lemenkov <[email protected]> | 2014-11-02 19:52:00 +0300 |
commit | 1bc59d68f5d22650fa18aa064ed8e50fc9a6a216 (patch) | |
tree | bf0a5463c3ba1c84fa91e392cd8e9ca98b84d528 /lib | |
parent | 4e969748e47566c974ce526ade50c34ab62e3b26 (diff) | |
download | otp-1bc59d68f5d22650fa18aa064ed8e50fc9a6a216.tar.gz otp-1bc59d68f5d22650fa18aa064ed8e50fc9a6a216.tar.bz2 otp-1bc59d68f5d22650fa18aa064ed8e50fc9a6a216.zip |
Expose NIF version
This patch allows checking for NIF API version in a way similar to
driver version. E.g. by calling erlang:system_info(nif_version).
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/runtime_tools/src/system_information.erl | 1 | ||||
-rw-r--r-- | lib/runtime_tools/test/system_information_SUITE_data/information_test_report.dat | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/runtime_tools/src/system_information.erl b/lib/runtime_tools/src/system_information.erl index f541d6e449..04cc33e1ad 100644 --- a/lib/runtime_tools/src/system_information.erl +++ b/lib/runtime_tools/src/system_information.erl @@ -371,6 +371,7 @@ erlang_system_info() -> logical_processors_online, logical_processors_available, driver_version, + nif_version, emu_args, ethread_info, beam_jump_table, diff --git a/lib/runtime_tools/test/system_information_SUITE_data/information_test_report.dat b/lib/runtime_tools/test/system_information_SUITE_data/information_test_report.dat index 18938372a3..bdc510e838 100644 --- a/lib/runtime_tools/test/system_information_SUITE_data/information_test_report.dat +++ b/lib/runtime_tools/test/system_information_SUITE_data/information_test_report.dat @@ -9720,6 +9720,7 @@ {logical_processors_online,4}, {logical_processors_available,4}, {driver_version,"2.1"}, + {nif_version,"1.1"}, {taints,[]}]}, {erts_compile_info, [{ldflags,[]}, |