Hi Tuma,

> Anyone knows about the vtrace provider? When I was reading the code, I
> find some traces like TRACE_1, TRACE_2, etc. The comments says they're
> now replaced by Dtrace's vtrace provider, but I couldn't find any
> documents about this vtrace provider. I googled and searched on
> docs.sun, and found nothing.
>
>
> I also saw the definitions:
>
> #define TRACE_1(fac, tag, name, d1) {                           \
>         extern void __dtrace_probe___vtrace_##tag(ulong_t);     \
>         __dtrace_probe___vtrace_##tag((ulong_t)(d1));           \
> }
>
> But I couldn't find any __dtrace_probe___vtrace_* definitions in the
> code. Can anyone give some hints?

Not quite sure what you mean. The TRACE_() definitions that you
cite in sys/vtrace.h are used in DEBUG kernels only. Every time you find
a TRACE_() call in the source it will be replaced with the above SDT based
probes - do a `dtrace -l -P vtrace` on a debug kernel to see the probes. On
regular, non debug kernel you won't see any vtrace probes.

I would have thought the comment at the top of sys/vtrace.h explains
what the vtrace provider is and what its purpose is. Does this not do
it for you?

Jon.
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to