This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Is there a way to tell stap where to find include headers?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Lan\, Jay" <jay dot lan at hpe dot com>
- Cc: Systemtap <systemtap at sourceware dot org>
- Date: Thu, 07 Mar 2019 21:32:51 -0500
- Subject: Re: Is there a way to tell stap where to find include headers?
- References: <28699289-7192-4eec-b7a3-de6ac2d5bf1e@hpe.com>
"Lan, Jay" <jay.lan@hpe.com> writes:
> I am new to systemtap and am writing a systemtap script on Mellanox
> OFED ('mofed') kernel modules. The mofed provides its subset of kernel
> include files at different location from that of a kernel-devel. The
> mofed header files should be checked ahead of those from kernel-devel.
>
> Is there a way to tell stap where to find the mofed header files?
systemtap looks for headers in a couple of contexts: tracepoints (for
trace("...") probes), type declarations (for @cast ops). For the
former, not sure.
For the latter,
@cast(ptr, "typename", "kernel</path/to/header>")->field
does work.
- FChE