On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <[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]> 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]"
