public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>
Cc: systemtap@sources.redhat.com
Subject: Re: command line arguments
Date: Fri, 24 Feb 2006 15:51:00 -0000	[thread overview]
Message-ID: <20060224155105.GH20902@redhat.com> (raw)
In-Reply-To: <20060224134222.GA21829@redhat.com>

Hi -

> [...] So I'd think named arguments would be clearer to use [...]
>     global samplerate = 1000
>     probe timer.jiffies(samplerate) [...]

One side problem with this is that probe point specifications only
take literals as arguments, since they are evaluated at translation
time.  Ordinary globals can change their value.  (While one might
imagine a way of making this work for timers, it won't for dwarf-type
probes.)  To support default literals in the absence of command line
args, we could conceivably support shell-style ${1-default} type
bracketing.

Initializing globals by name is something that the other ("dormant",
module-params-based) part of the command line argument code is
designed to enable.  That part should serve most of your purposes,
once it's finished.  Note that we currently lack syntax to initialize
globals within script ("global foo = LITERAL") but that's coming too.

It is indeed a little odd to have this dichotomy between two types of
parametrization, but then again, C has that too (cc -D vs. getopt).

- FChE

  reply	other threads:[~2006-02-24 15:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-23 22:42 Frank Ch. Eigler
2006-02-24  5:52 ` Martin Hunt
2006-02-24 12:24   ` Frank Ch. Eigler
2006-02-24 18:44     ` Martin Hunt
2006-02-25 21:38       ` Frank Ch. Eigler
2006-02-27 20:34         ` Martin Hunt
2006-02-24 13:42 ` Daniel P. Berrange
2006-02-24 15:51   ` Frank Ch. Eigler [this message]
2006-02-24 20:59     ` Roland McGrath
2006-02-24 21:22       ` Frank Ch. Eigler
2006-02-23 23:41 Stone, Joshua I
2006-02-24  1:00 ` Frank Ch. Eigler

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=20060224155105.GH20902@redhat.com \
    --to=fche@redhat.com \
    --cc=berrange@redhat.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).