diff options
author | Rickard Green <[email protected]> | 2017-01-11 18:18:11 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2017-01-11 18:21:38 +0100 |
commit | c057b468ee7535f199aa01301ff93e059fad4b07 (patch) | |
tree | 34a661cd963a8836cda6914fd8fe565ced0c6255 /erts/emulator/beam/erl_bif_trace.c | |
parent | efc331a04191a124ee7428c25f2ec05ded748faf (diff) | |
download | otp-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.c | 7 |
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(); |