Re: bpftrace and include search paths?

Richard Elling

On Apr 4, 2019, at 1:38 PM, Brendan Gregg <brendan.d.gregg@...> wrote:

C_INCLUDE_PATH=... environment variable should work.

Yes, thanks. Though CPATH seems to be more universal. I'll work up some docs and
submit a PR.

Now, if I can find an equivalent to dtrace's print(arg[0])...
 -- richard

But you can file an RFE or PR anyway to add this to the docs. Thanks!


On Thu, Apr 4, 2019 at 12:41 PM Richard Elling <richard.elling@...> wrote:
I have a need to have a bpftrace script #include headers from a project
directory. In cc, this is like adding -I<path>. Am I blind from reading manuals
or is there a clever way to pass that info down through bpftrace into bpf or
is this a new RFE?
 -- richard

Join { to automatically receive all group messages.