aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_async.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_async.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_async.c')
-rw-r--r--erts/emulator/beam/erl_async.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_async.c b/erts/emulator/beam/erl_async.c
index b8cb3c6cc4..f0e98b33a5 100644
--- a/erts/emulator/beam/erl_async.c
+++ b/erts/emulator/beam/erl_async.c
@@ -270,6 +270,7 @@ static ERTS_INLINE void async_add(ErtsAsync *a, ErtsAsyncQ* q)
#endif
erts_thr_q_enqueue(&q->thr_q, a);
+#ifdef USE_VM_PROBES
if (DTRACE_ENABLED(aio_pool_add)) {
DTRACE_CHARBUF(port_str, 16);
@@ -278,6 +279,7 @@ static ERTS_INLINE void async_add(ErtsAsync *a, ErtsAsyncQ* q)
len = -1;
DTRACE2(aio_pool_add, port_str, len);
}
+#endif
gcc_optimizer_hack++;
}
@@ -301,6 +303,7 @@ static ERTS_INLINE ErtsAsync *async_get(ErtsThrQ_t *q,
if (saved_fin_deq)
erts_thr_q_append_finalize_dequeue_data(&a->q.fin_deq, &fin_deq);
#endif
+#ifdef USE_VM_PROBES
if (DTRACE_ENABLED(aio_pool_get)) {
DTRACE_CHARBUF(port_str, 16);
@@ -309,6 +312,7 @@ static ERTS_INLINE ErtsAsync *async_get(ErtsThrQ_t *q,
len = -1;
DTRACE2(aio_pool_get, port_str, len);
}
+#endif
return a;
}