Help with libstdc++ DTrace provider

Pedro Giffuni pfg at FreeBSD.org
Sat Jun 29 20:42:42 UTC 2013


Hello;

Sometime ago I found this patch for Apple's Darwin:

http://www.opensource.apple.com/source/libstdcxx/libstdcxx-39/patches-4.2.1/dtrace.patch

It appears to be the basis of a libstdc++ provider:
there are some probes where exceptions are generated.

The patch to our contrib/libstdc++ is this:

http://people.freebsd.org/~pfg/patches/dtrace/libstdc++.patch

However when I follow the instructions in:
libstdc++/config/os/bsd/freebsd/dtrace_cxa_runtime.d

it fails:

dtrace -C -h -s dtrace_cxa_runtime.d -o dtrace_cxa_runtime.h
dtrace: failed to compile script dtrace_cxa_runtime.d: 
"/usr/lib/dtrace/errno.d", line 2: type redeclared: struct devinfo

Anyone knows what is missing/failing and how to fix this?

Thanks in advance,

Pedro.




More information about the freebsd-dtrace mailing list