aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-03-21 12:00:05 +0100
committerPatrik Nyblom <[email protected]>2012-03-22 18:16:16 +0100
commit848f6e541f779e13f7d99bbd0c99ac37a9bd56e8 (patch)
tree6d7786f6711dbcc092388bf0bbc1187d562d0e91 /erts/emulator
parente3163d8482c01bd61a76c3c69adfd45df94b8f7f (diff)
downloadotp-848f6e541f779e13f7d99bbd0c99ac37a9bd56e8.tar.gz
otp-848f6e541f779e13f7d99bbd0c99ac37a9bd56e8.tar.bz2
otp-848f6e541f779e13f7d99bbd0c99ac37a9bd56e8.zip
Correct calculation of stack depth in call/return probes
Diffstat (limited to 'erts/emulator')
-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); \