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 + Android | Compiling Script | ERROR


On 11/07/2016 12:12 PM, ayush goel wrote:
>> No, you need the '-r BUILD_TREE' option so that systemtap will compile a
>> module for your target kernel, not for your running kernel.
>>
> 
> Well is there a work around then, because I can see this error getting
> repeated for a couple of definitions.

To fix this problem, you'll have to dig into how systemtap works a bit.
When invoked, one of the things it does is try to figure out if your
kernel exports vzalloc. Systemtap does this by reading your kernel's
Module.symvers file, located in your kernel build tree.

On my 32-bit rawhide system, that file is located in
/usr/src/kernels/4.8.0-0.rc6.git0.1.fc26.i686+PAE/Module.symvers. If I
look for vzalloc in that file, I see the following:

====
# fgrep -i vzalloc
/usr/src/kernels/4.8.0-0.rc6.git0.1.fc26.i686+PAE/Module.symvers
0x00000000	vzalloc_node	vmlinux	EXPORT_SYMBOL
0x00000000	vzalloc	vmlinux	EXPORT_SYMBOL
====

Which reports that vzalloc is present and exported.

If systemtap can't find the Module.symvers file, it will report the
following error:

====
Checking "FILE" failed with error: ERROR
Ensure kernel development headers & makefiles are installed
====

Questions:

1) Do you see that error (or something similar) in your systemtap
invocation output?

2) Can you find the Module.symvers file for your host kernel and target
android kernel?

3) Is vzalloc present in the Module.symvers file for your host kernel
and target android kernel?

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)


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