This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: systemtap cross compile with out of tree module


On Fri, Jan 18, 2013 at 11:21 PM, Josh Stone <jistone@redhat.com> wrote:
> On 01/18/2013 07:43 AM, Frank Ch. Eigler wrote:
>> OK.  (I can't think of any reason why an out-of-tree module should
>> behave differently in this way.  Do you have a
>> $SYSTEMTAP_DEBUGINFO_PATH set up?  Perhaps stap is confusing your
>> module with a request for a user-space process probe.)
>
> I know there are parts of our code that don't have the context to know
> whether an object path is a kernel module or userspace binary, and we
> heuristically decide that absolute paths (starting with '/') must be
> userspace.
>
> This is probably such a case, and it's a pretty good example of why we
> should fix those...
>

Thanks for the reply. Providing symlinks to out-of-tree module inside
the kernel directory works, then systemtap is able to find those
modules. But by probing multiple modules, systemtap gives a warning
WARNING: missing unwind/symbol data for module. If I probe each module
individually, it works :( . Earlier I used to give the full path
inside script like probe module("/home/mav/stap/test_module.ko"), so
systemtap mistaken it as a user application.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]