From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20548 invoked by alias); 24 Feb 2006 21:22:32 -0000 Received: (qmail 20540 invoked by uid 22791); 24 Feb 2006 21:22:32 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 24 Feb 2006 21:22:30 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k1OLMTsI031055 for ; Fri, 24 Feb 2006 16:22:29 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1OLMS122849; Fri, 24 Feb 2006 16:22:28 -0500 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id k1OLMSg2031839; Fri, 24 Feb 2006 16:22:28 -0500 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 364C28000E9; Fri, 24 Feb 2006 16:22:28 -0500 (EST) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id k1OLMSCY005250; Fri, 24 Feb 2006 16:22:28 -0500 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id k1OLMSUS005249; Fri, 24 Feb 2006 16:22:28 -0500 Date: Fri, 24 Feb 2006 21:22:00 -0000 From: "Frank Ch. Eigler" To: Roland McGrath Cc: systemtap@sources.redhat.com Subject: Re: command line arguments Message-ID: <20060224212227.GI20902@redhat.com> References: <20060224155105.GH20902@redhat.com> <20060224205916.EA01E180A66@magilla.sf.frob.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060224205916.EA01E180A66@magilla.sf.frob.com> User-Agent: Mutt/1.4.1i Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00628.txt.bz2 Hi - roland wrote: > An idea that occurred to me is to have command-line arguments be like > systemtap function arguments. [...] > > global s, n > probe begin (name: string, number: int) { s = name; n = number; } > stap foo.stp foobar 123 With the current code, this would look thus: # global s, n # probe begin { s = @1; n = $2; } # stap foo.stp foobar 123 Since the "number" and "name" names aren't being used at the command line, there seems to be little loss. (There are other complications with parametrizing the "begin" probe. For one, there can be many begin probes. :-) - FChE