diff options
author | zheng siyao <[email protected]> | 2012-05-09 19:55:56 +0800 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-05-11 11:19:56 +0200 |
commit | d032e097cac47bc0f6e6cf0df86b778e0ae16f94 (patch) | |
tree | 08ed7f93ecef135b329345eb85f070da74598431 /erts/emulator/beam/dtrace-wrapper.h | |
parent | 04745e3fbb5fe194bc7561f96300d821e7f9e2aa (diff) | |
download | otp-d032e097cac47bc0f6e6cf0df86b778e0ae16f94.tar.gz otp-d032e097cac47bc0f6e6cf0df86b778e0ae16f94.tar.bz2 otp-d032e097cac47bc0f6e6cf0df86b778e0ae16f94.zip |
DTrace bug in message-send
dtrace doesn't print sender pid and receiver pid in message related
probe correctly, it truncates pid string to 7 characters on 64bit
platform(or 3 characters on 32bit platform). The dtrace related code
did not set the string length correctly, it sets the string length to
the length of a pointer rather than the buffer length.
Diffstat (limited to 'erts/emulator/beam/dtrace-wrapper.h')
-rw-r--r-- | erts/emulator/beam/dtrace-wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/dtrace-wrapper.h b/erts/emulator/beam/dtrace-wrapper.h index 1aeb7f9221..6ec0c91e21 100644 --- a/erts/emulator/beam/dtrace-wrapper.h +++ b/erts/emulator/beam/dtrace-wrapper.h @@ -42,6 +42,8 @@ #define DTRACE_CHARBUF(name, size) \ char name##_BUFFER[size], *name = name##_BUFFER +#define DTRACE_CHARBUF_NAME(name) name##_BUFFER + #if defined(USE_DYNAMIC_TRACE) && defined(USE_VM_PROBES) #include "erlang_dtrace.h" |