This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Linking with external lib
- From: David Smith <dsmith at redhat dot com>
- To: Mahmoud Hanafi <mahmoud dot hanafi at nasa dot gov>, systemtap at sourceware dot org
- Date: Tue, 6 Sep 2016 13:55:08 -0500
- Subject: Re: Linking with external lib
- Authentication-results: sourceware.org; auth=none
- References: <f57bf2ba-fa2d-768a-742f-836b1c18c8d6@nasa.gov>
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.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)