From d032e097cac47bc0f6e6cf0df86b778e0ae16f94 Mon Sep 17 00:00:00 2001 From: zheng siyao Date: Wed, 9 May 2012 19:55:56 +0800 Subject: 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. --- erts/emulator/beam/dtrace-wrapper.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'erts/emulator/beam/dtrace-wrapper.h') 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" -- cgit v1.2.3