From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16203 invoked by alias); 24 Feb 2006 01:00:32 -0000 Received: (qmail 16192 invoked by uid 22791); 24 Feb 2006 01:00:30 -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 01:00:28 +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 k1O10Q7u014995 for ; Thu, 23 Feb 2006 20:00:26 -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 k1O10Q104534; Thu, 23 Feb 2006 20:00:26 -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 k1O10Qg2018162; Thu, 23 Feb 2006 20:00:26 -0500 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id EE1378000E9; Thu, 23 Feb 2006 20:00:25 -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 k1O10P4v020720; Thu, 23 Feb 2006 20:00:25 -0500 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id k1O10Ped020719; Thu, 23 Feb 2006 20:00:25 -0500 Date: Fri, 24 Feb 2006 01:00:00 -0000 From: "Frank Ch. Eigler" To: "Stone, Joshua I" Cc: systemtap@sources.redhat.com Subject: Re: command line arguments Message-ID: <20060224010025.GF20902@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00610.txt.bz2 Hi - > It would indeed be nice if $N could be dynamically be typed, especially > since the other $target variables are, but I can see how this would be > hard. That's the heuristic I was talking about. One problem is that several places like probe point functors (.statement(), .function()) accept *both* string or number literals. > The @ is ok, but it doesn't really say "string" to me. Perhaps a > single-quote or backquote might be better - '1 or `1? Or perhaps a backslash, as in regexps. > Another option is to allow expansion of $N within string literals [...] > # stap -e 'probe kernel.function("$1") { print($2) }' sys_open 4 But then normal dollar signs would have to be quoted. - FChE