aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_trace.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-01-11 18:18:11 +0100
committerRickard Green <[email protected]>2017-01-11 18:21:38 +0100
commitc057b468ee7535f199aa01301ff93e059fad4b07 (patch)
tree34a661cd963a8836cda6914fd8fe565ced0c6255 /erts/emulator/beam/erl_bif_trace.c
parentefc331a04191a124ee7428c25f2ec05ded748faf (diff)
downloadotp-c057b468ee7535f199aa01301ff93e059fad4b07.tar.gz
otp-c057b468ee7535f199aa01301ff93e059fad4b07.tar.bz2
otp-c057b468ee7535f199aa01301ff93e059fad4b07.zip
Fix call time tracing with dirty schedulers
Diffstat (limited to 'erts/emulator/beam/erl_bif_trace.c')
-rw-r--r--erts/emulator/beam/erl_bif_trace.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_trace.c b/erts/emulator/beam/erl_bif_trace.c
index 96275eb228..0627526d7e 100644
--- a/erts/emulator/beam/erl_bif_trace.c
+++ b/erts/emulator/beam/erl_bif_trace.c
@@ -1062,9 +1062,16 @@ trace_info_func(Process* p, Eterm func_spec, Eterm key)
erts_smp_thr_progress_block();
}
#endif
+#ifdef ERTS_DIRTY_SCHEDULERS
+ erts_smp_mtx_lock(&erts_dirty_bp_ix_mtx);
+#endif
+
r = function_is_traced(p, mfa, &ms, &ms_meta, &meta, &count, &call_time);
+#ifdef ERTS_DIRTY_SCHEDULERS
+ erts_smp_mtx_unlock(&erts_dirty_bp_ix_mtx);
+#endif
#ifdef ERTS_SMP
if ( (key == am_call_time) || (key == am_all)) {
erts_smp_thr_progress_unblock();