> What''s the history of the kernel defines asking for the types of
the
> arguments? If it weren''t for Sun Studio not really supporting
__asm__
> I could see how they could be put to use, but I was wondering if that was
> the original purpose...
This predated more recent work in the compiler to support USDT, namely
the idea of a provider and probe definition and .h file generation.
At some point we''ll do the same for kernel SDT. At the time we were
leaving a hook for the idea that one could auto-generate CTF and/or
probe definitions based on those types. I did a prototype of some of
this in gcc, but it''s very hard to do in the existing Sun compiler
since it
lacks some of the clever __attribute__ features available in gcc.
-Mike
--
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/