Linking with external lib

Mahmoud Hanafi mahmoud.hanafi@nasa.gov
Tue Sep 6 19:08:00 GMT 2016



On 09/06/2016 11:55 AM, David Smith wrote:
> On 09/06/2016 01:37 PM, Mahmoud Hanafi wrote:
>> In my stap script I have some embedded C function that needs to make
>> some calls to external libraries. Is there I can link my script with the
>> external libs? Or do i need to add all the code I need into my script.
> Basically you can't. A systemtap script gets compiled into a kernel
> module (assuming you are using the default 'linux' runtime). A kernel
> module can't access *any* user library.
>
> Perhaps you should back up a bit and let us know what your external
> library is trying to do.
>
The library is part of lustre. I need the functions that does address 
translation to string values.

-- 
Mahmoud Hanafi
NASA Ames Research Center
Mail Stop 258-6
Bldg. 258
P.O. Box 1
Moffett Field, CA 94035-0001

Office: 650-604-1454
Cell: 510-386-0615



More information about the Systemtap mailing list