Date: Mon, 2 Mar 2020 21:57:21 +0530 From: Kamal Prasad <kamalpr@gmail.com> To: Ash Gokhale <ashfixit@gmail.com> Cc: freebsd-dtrace@freebsd.org Subject: Re: set argument Message-ID: <BA46B310-621F-4B48-9CB5-09A7D80FC8DA@gmail.com> In-Reply-To: <CAHpe%2B0ZUp2A3Qebn80OdeE9yKSw5tGu7Ak3gCZpw%2Bv579-ab3w@mail.gmail.com> References: <CAK=yUGL8Ls5V4E=ucPJ9Unvf_UhDDngU7ue%2BkeRL3Zx2khJw5Q@mail.gmail.com> <CAHpe%2B0ZxJiy3MXnRPQqDDv7=%2By0LPwoCnE6Tgg6bYVYwZs7MXQ@mail.gmail.com> <0852C183-1EC6-4B19-A947-65C8669708C5@gmail.com> <CAHpe%2B0ZUp2A3Qebn80OdeE9yKSw5tGu7Ak3gCZpw%2Bv579-ab3w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@gmail.com> wrote: >=20 >=20 >=20 > On Mon, Mar 2, 2020 at 11:03 AM Kamal Prasad <kamalpr@gmail.com = <mailto:kamalpr@gmail.com>> wrote: > Is it possible to include the header ind race so that I don=E2=80=99t = replicate structure definition? >=20 > > On Mar 2, 2020, at 9:28 PM, Ash Gokhale <ashfixit@gmail.com = <mailto:ashfixit@gmail.com>> wrote: >=20 >=20 >=20 > 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. =20 >=20 > 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?BA46B310-621F-4B48-9CB5-09A7D80FC8DA>