aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_nif.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2012-03-09 17:20:49 +0100
committerPatrik Nyblom <[email protected]>2012-03-22 18:16:14 +0100
commit326e098659de187099451bf20a33c3e6181b4141 (patch)
tree7cad8f20c6e3e734c2221c56c77744cae057c7a9 /erts/emulator/beam/erl_nif.c
parent0889c9860f5d07fc87db6bfc287b9a3ddc764aa1 (diff)
downloadotp-326e098659de187099451bf20a33c3e6181b4141.tar.gz
otp-326e098659de187099451bf20a33c3e6181b4141.tar.bz2
otp-326e098659de187099451bf20a33c3e6181b4141.zip
Ifdef all dynamic trace code
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r--erts/emulator/beam/erl_nif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index 156783d057..40f2fde578 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -66,7 +66,9 @@ static void add_readonly_check(ErlNifEnv*, unsigned char* ptr, unsigned sz);
static int is_offheap(const ErlOffHeap* off_heap);
#endif
+#ifdef USE_VM_PROBES
void dtrace_nifenv_str(ErlNifEnv *, char *);
+#endif
#define MIN_HEAP_FRAG_SZ 200
static Eterm* alloc_heap_heavy(ErlNifEnv* env, unsigned need, Eterm* hp);
@@ -1784,10 +1786,12 @@ void erl_nif_init()
resource_type_list.name = THE_NON_VALUE;
}
+#ifdef USE_VM_PROBES
void dtrace_nifenv_str(ErlNifEnv *env, char *process_buf)
{
dtrace_pid_str(env->proc->id, process_buf);
}
+#endif
#ifdef READONLY_CHECK
/* Use checksums to assert that NIFs do not write into inspected binaries