aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/beam_emu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 6a758f6e19..69a3d7e81a 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -1061,8 +1061,7 @@ init_emulator(void)
if (DTRACE_ENABLED(function_entry)) { \
DTRACE_CHARBUF(process_name, DTRACE_TERM_BUF_SIZE); \
DTRACE_CHARBUF(mfa, DTRACE_TERM_BUF_SIZE); \
- int depth = (STACK_START(p) - STACK_TOP(p)) \
- / sizeof(Eterm*); \
+ int depth = STACK_START(p) - STACK_TOP(p); \
dtrace_fun_decode(p, m, f, a, \
process_name, mfa); \
DTRACE3(function_entry, process_name, mfa, depth); \
@@ -1072,8 +1071,7 @@ init_emulator(void)
if (DTRACE_ENABLED(function_return)) { \
DTRACE_CHARBUF(process_name, DTRACE_TERM_BUF_SIZE); \
DTRACE_CHARBUF(mfa, DTRACE_TERM_BUF_SIZE); \
- int depth = (STACK_START(p) - STACK_TOP(p)) \
- / sizeof(Eterm*); \
+ int depth = STACK_START(p) - STACK_TOP(p); \
dtrace_fun_decode(p, m, f, a, \
process_name, mfa); \
DTRACE3(function_return, process_name, mfa, depth); \