diff --git a/Makefile.frag b/Makefile.frag index 4797fda..cacbb77 100644 --- a/Makefile.frag +++ b/Makefile.frag @@ -1,9 +1,5 @@ dtrace-fixup: - if test -f $(builddir)/.libs/phpuv.o ; then \ - dtrace -h -C -s $(srcdir)/phpuv.d $(builddir)/.libs/phpuv.o ; \ - else \ - dtrace -h -C -s $(srcdir)/phpuv.d phpuv.lo ; \ - fi + dtrace -h -s $(srcdir)/phpuv_dtrace.d; \ $(srcdir)/libuv/uv.a: $(MAKE) -C $(srcdir)/libuv diff --git a/config.m4 b/config.m4 index 035c0f6..6a1b3af 100644 --- a/config.m4 +++ b/config.m4 @@ -26,7 +26,6 @@ fi if test "$PHP_UV_DTRACE" != "no"; then UV_SHARED_DEPENDENCIES=dtrace-fixup - UV_SHARED_LIBADD="phpuv.o -Wl,-M$srcdir/kludge.map" PHP_ADD_LIBRARY(dtrace, UV_SHARED_LIBADD) PHP_SUBST(UV_SHARED_DEPENDENCIES) diff --git a/php_uv.c b/php_uv.c index 2325c8a..b5eed19 100644 --- a/php_uv.c +++ b/php_uv.c @@ -19,6 +19,7 @@ #include "php_uv.h" #include "ext/standard/info.h" +#include "phpuv.h" #ifndef PHP_UV_DEBUG #define PHP_UV_DEBUG 0 @@ -26,6 +27,7 @@ #include #include +#include "phpuv_dtrace.h" #define PHP_UV_INIT_UV(uv, uv_type) \ uv = (php_uv_t *)emalloc(sizeof(php_uv_t)); \ @@ -1711,7 +1713,7 @@ static void php_uv_udp_send(int type, INTERNAL_FUNCTION_PARAMETERS) PHP_MINIT_FUNCTION(uv) { - DTRACE_PROBE(phpuv, minit) + PHPUV_TRACE_MINIT(); php_uv_init(TSRMLS_C); uv_resource_handle = zend_register_list_destructors_ex(destruct_uv, NULL, PHP_UV_RESOURCE_NAME, module_number); diff --git a/phpuv.d b/phpuv.d deleted file mode 100644 index 5d9640f..0000000 --- a/phpuv.d +++ /dev/null @@ -1,3 +0,0 @@ -provider phpuv { - probe minit(); -}; \ No newline at end of file diff --git a/phpuv_dtrace.d b/phpuv_dtrace.d new file mode 100644 index 0000000..31cf0b4 --- /dev/null +++ b/phpuv_dtrace.d @@ -0,0 +1,3 @@ +provider phpuv { + probe trace__minit(); +}; \ No newline at end of file