From mboxrd@z Thu Jan 1 00:00:00 1970 From: fche@redhat.com (Frank Ch. Eigler) Date: Sun, 07 May 2017 11:16:59 -0400 Subject: system tap unable to refer a structure definition In-Reply-To: (Gadre Nayan's message of "Wed, 3 May 2017 16:29:45 +0530") References: Message-ID: <87shkg3dec.fsf@redhat.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org gadrenayan wrote: > [...] > c = @cast($frags[0]->f_addr, "volioship_hdr_t", > "/root/ngadre/unixvm-cvs/src/common/kernel/vxvm/ioship_cvm.h") > [...] > The header file is locally available on the machine. > [...] > semantic error: type definition 'volioship_hdr_t' not found in ' > /root/ngadre/unixvm-cvs/src/common/kernel/vxvm/ioship_cvm.h': operator > '@cast' at :46:6 > [...] > How do I make system tap refer to this structure. @cast requires use of the syntax "kernel" to process such files, because they involve different compiler invocations. That may not be all there is to it. Rerun stap with --vp 04 or somesuch to get some verbose tracing of its attempts to process that header. - FChE