public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: David Smith <dsmith@redhat.com>
Cc: "Stone, Joshua I" <joshua.i.stone@intel.com>,
		"Frank Ch. Eigler" <fche@redhat.com>,
		Systemtap List <systemtap@sources.redhat.com>
Subject: RE: pre-compiled modules
Date: Wed, 28 Jun 2006 00:49:00 -0000	[thread overview]
Message-ID: <20060627233955.9938918004B@magilla.sf.frob.com> (raw)
In-Reply-To: David Smith's message of  Tuesday, 27 June 2006 14:59:28 -0500 <1151438368.24128.31.camel@dhcp-2.hsv.redhat.com>

> > > 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?

The output compiled module is the single .ko file, right?  That being the
case, I think what makes the most sense is an option that takes a file name.

> > 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?

It doesn't matter what the name of the .ko file is at load time.  The
module name is embedded in the struct module that's compiled into the file
by the Kbuild process.  So as to the latter case of unrelated modules that
users think of as having the same name, that is easily avoided by choosing
unique names at module compilation time.  

  reply	other threads:[~2006-06-27 23:40 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
2006-06-28  0:49   ` Roland McGrath [this message]
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=20060627233955.9938918004B@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=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).