If I want to typecast struct reentry from route.h dtrace allows me to access 
the definition. Can you tell me how without following what to do?

thanks
-kamal

> On Mar 2, 2020, at 9:42 PM, Ash Gokhale <[email protected]> wrote:
> 
> 
> 
> On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <[email protected] 
> <mailto:[email protected]>> wrote:
> Is it possible to include the header ind race so that I don’t replicate 
> structure definition?
> 
> > On Mar 2, 2020, at 9:28 PM, Ash Gokhale <[email protected] 
> > <mailto:[email protected]>> wrote:
> 
> 
> 
> Sort of. You can call the C preprocessor on a dtrace script to reduce some of 
> the header echo  ( you may have to rename it as a .c  to pass the  name based 
> rules processing); hoever you may have to reorganize or filter your headers 
> so dtrace won't choke on  ideas foreign  to dtrace like inline code or 
> whatever.  
> 
> somthing like this : cc -E  im_really_a_dtrace_script.c | sed -e 's/^\# 
> .*$//' > dl.dtrac

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "[email protected]"

Reply via email to