On Jan 31, 2008, at 12:07 PM, Paul van den Bogaard wrote:

> Running dtrace -h -q myprobes.d, where myprobes.d contains the  
> following:
>
> provider myprobes {
> probe mystuff__enter(int, int);
> probe mystuff__return(int, int);
> };
>
> results in a header file that has the proper macro defines. However  
> the double underscores are changed into single underscores. This  
> while the convention is to replace a double underscore with a hyphen  
> in the final probe name.
>
> Is this an oversight?  Or intentionally?
>

If you look at the macro definition the hyphen is preserved in the  
final probe name, but you don't have to use the double underscore in  
the macro (just try to list the probes when your program is running).

>
> #define MYPROBES_MYSTUFF_ENTER(arg0, arg1) \
>        __dtrace_myprobes___mystuff__enter(arg0, arg1)

The double underscore is preserved


Trond


_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to