Date: Mon, 2 Mar 2020 11:12:38 -0500 From: Ash Gokhale <ashfixit@gmail.com> To: Kamal Prasad <kamalpr@gmail.com> Cc: freebsd-dtrace@freebsd.org Subject: Re: set argument Message-ID: <CAHpe%2B0ZUp2A3Qebn80OdeE9yKSw5tGu7Ak3gCZpw%2Bv579-ab3w@mail.gmail.com> In-Reply-To: <0852C183-1EC6-4B19-A947-65C8669708C5@gmail.com> References: <CAK=yUGL8Ls5V4E=ucPJ9Unvf_UhDDngU7ue%2BkeRL3Zx2khJw5Q@mail.gmail.com> <CAHpe%2B0ZxJiy3MXnRPQqDDv7=%2By0LPwoCnE6Tgg6bYVYwZs7MXQ@mail.gmail.com> <0852C183-1EC6-4B19-A947-65C8669708C5@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <kamalpr@gmail.com> wrote: > Is it possible to include the header ind race so that I don=E2=80=99t rep= licate > structure definition? > > > On Mar 2, 2020, at 9:28 PM, Ash Gokhale <ashfixit@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHpe%2B0ZUp2A3Qebn80OdeE9yKSw5tGu7Ak3gCZpw%2Bv579-ab3w>