From: David Smith <dsmith@redhat.com>
To: Mahmoud Hanafi <mahmoud.hanafi@nasa.gov>, systemtap@sourceware.org
Subject: Re: Linking with external lib
Date: Tue, 06 Sep 2016 18:55:00 -0000 [thread overview]
Message-ID: <c74a5900-e913-e99a-4820-5be3705c15ec@redhat.com> (raw)
In-Reply-To: <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)
next prev parent reply other threads:[~2016-09-06 18:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 18:37 Mahmoud Hanafi
2016-09-06 18:55 ` David Smith [this message]
2016-09-06 19:08 ` Mahmoud Hanafi
2016-09-06 19:34 ` David Smith
2016-09-06 19:40 ` Mahmoud Hanafi
2016-09-06 20:01 ` Josh Stone
2016-09-07 15:24 ` William Cohen
2016-09-08 18:17 ` David Smith
2016-09-08 18:30 ` Mahmoud Hanafi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c74a5900-e913-e99a-4820-5be3705c15ec@redhat.com \
--to=dsmith@redhat.com \
--cc=mahmoud.hanafi@nasa.gov \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).