public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Mahmoud Hanafi <mahmoud.hanafi@nasa.gov>
To: David Smith <dsmith@redhat.com>, <systemtap@sourceware.org>
Subject: Re: Linking with external lib
Date: Tue, 06 Sep 2016 19:08:00 -0000	[thread overview]
Message-ID: <b30ffe1e-d8ec-230d-5dd6-9f819fb4bb5b@nasa.gov> (raw)
In-Reply-To: <c74a5900-e913-e99a-4820-5be3705c15ec@redhat.com>



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

  reply	other threads:[~2016-09-06 19:08 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
2016-09-06 19:08   ` Mahmoud Hanafi [this message]
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=b30ffe1e-d8ec-230d-5dd6-9f819fb4bb5b@nasa.gov \
    --to=mahmoud.hanafi@nasa.gov \
    --cc=dsmith@redhat.com \
    --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).