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 <ashfi...@gmail.com> wrote:
> 
> 
> 
> On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <kama...@gmail.com 
> <mailto:kama...@gmail.com>> 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 <ashfi...@gmail.com 
> > <mailto:ashfi...@gmail.com>> 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

_______________________________________________
freebsd-dtrace@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace
To unsubscribe, send any mail to "freebsd-dtrace-unsubscr...@freebsd.org"

Reply via email to