Helloes,

> String is a 'D' type, not a C type. Long story short, you want to use char*, 
> not string.

Oki, thats what I thought - though now I have to use lots of copyinstr()s.

Interesting though, I ended up porting some dtrace hooks (in stuff like php 
pecl's dtrace) from solaris to macosx.

There were few problems:

1. dtrace.h defined GElf_Addr and GElf_Xword in #if defined(__LP64__) and #elif 
defined(_LONGLONG_TYPE) sections - so on 32-bit macosx it failed to work.
I just added:
#else
typedef unsigned long           GElf_Addr;
typedef unsigned long           GElf_Xword;
#endif

2. Lack of -G makes various software not working. Both MySQL and PECL's dtrace 
use it, instead of relying on generated .h files.

3. .d files for various Solaris-oriented stuff have 'string', I guess it works 
as generated ELF - so I have to rewrite both headers / provider definitions to 
have char*, for MacOSX compile.

Long story short, I started playing with dtrace few hours ago :)

Domas


--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to