set argument
Kamal Prasad
kamalpr at gmail.com
Mon Mar 2 16:23:18 UTC 2020
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 <ashfixit at gmail.com> wrote:
>
>
>
> On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <kamalpr at gmail.com <mailto:kamalpr at 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 <ashfixit at gmail.com <mailto:ashfixit at 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
More information about the freebsd-dtrace
mailing list