public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: David Smith <dsmith@redhat.com>
To: "Stone, Joshua I" <joshua.i.stone@intel.com>
Cc: "Frank Ch. Eigler" <fche@redhat.com>,
	        Systemtap List <systemtap@sources.redhat.com>
Subject: RE: pre-compiled modules
Date: Tue, 27 Jun 2006 22:08:00 -0000	[thread overview]
Message-ID: <1151438368.24128.31.camel@dhcp-2.hsv.redhat.com> (raw)
In-Reply-To: <C56DB814FAA30B418C75310AC4BB279D2B7A20@scsmsx413.amr.corp.intel.com>

Thanks for the response.  See stuff below.

On Tue, 2006-06-27 at 12:47 -0700, Stone, Joshua I wrote:
> On Tuesday, June 27, 2006 11:52 AM, David Smith wrote:
> >> Blatant modversions mismatches will be detected during the actual
> >> insertion attempt - IMO there is no need to make a dry run first.  We
> >> will need more self-protective code though for purposes of verifying
> >> module addresses.  Specifically, we need to find a kernel API routine
> >> that, given a module name, gives its loaded base address.
> > 
> > Hmm, I hadn't considered that.  Will this code go in the module itself
> > or go in the runtime?
> 
> Is there a difference?  The runtime is still compiled into the module,
> right?

Sorry, I meant to say: "Will this code go in the module itself or the
stpd daemon?"

> > To help move this along a bit, I've attached a patch that modifies the
> > systemtap front end to take 2 new options:
> > 
> >    -S         Save the compiled module in the current directory
> 
> I would prefer to see an option to specify the directory, instead of
> assuming $PWD.  You could always use '-S .', but some people might want
> to drop it somewhere else.  Another possibility instead of -S is to just
> extend the -m option to allow a path.

That's easy enough to add, but it seems like that 99% of the time I'd
want it to go in the current directory.

Anyone else got any opinions?

> >    -P PRE_COMPILED_MODULE
> >               Run pre-compiled module
> 
> Looks fine.
> 
> Have you thought about concurrent access to a precompiled module?  If
> you have a systemtap module foo.ko on a multi-user system, you might end
> up with a situation where multiple people want to run it at the same
> time.  Of course you can only insmod one at a time, if nothing else
> because of the naming issue.  

Hmm, no I hadn't considered that.  We've also got a similar but
different problem.  What happens when 2 users both compile two different
scripts called 'foo.stp' into 'foo.ko', then try to run them
concurrently?

I'm unsure of what we can do in either case.

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


  reply	other threads:[~2006-06-27 20:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-27 20:01 Stone, Joshua I
2006-06-27 22:08 ` David Smith [this message]
2006-06-28  0:49   ` Roland McGrath
2006-06-28  6:00   ` Roland McGrath
2006-06-30 18:05     ` Frank Ch. Eigler
2006-06-30 19:02       ` Roland McGrath
  -- strict thread matches above, loose matches on Subject: below --
2006-06-27 23:40 Stone, Joshua I
2006-06-30 23:35 ` Frank Ch. Eigler
     [not found] <1150298740.16471.33.camel@dhcp-2.hsv.redhat.com>
2006-06-19 16:40 ` Frank Ch. Eigler
2006-06-19 16:48   ` Hien Nguyen
2006-06-19 17:23   ` Martin Hunt
2006-06-27 19:47   ` David Smith

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=1151438368.24128.31.camel@dhcp-2.hsv.redhat.com \
    --to=dsmith@redhat.com \
    --cc=fche@redhat.com \
    --cc=joshua.i.stone@intel.com \
    --cc=systemtap@sources.redhat.com \
    /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).