set argument
Ash Gokhale
ashfixit at gmail.com
Mon Mar 2 16:12:57 UTC 2020
On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <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> 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