From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5497 invoked by alias); 24 Feb 2006 05:52:19 -0000 Received: (qmail 5488 invoked by uid 22791); 24 Feb 2006 05:52:17 -0000 X-Spam-Status: No, hits=-2.5 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 05:52:14 +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 k1O5qCWg016464 for ; Fri, 24 Feb 2006 00:52:12 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1O5qC129359; Fri, 24 Feb 2006 00:52:12 -0500 Received: from vpn83-140.boston.redhat.com (vpn83-140.boston.redhat.com [172.16.83.140]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id k1O5qBXv029479; Fri, 24 Feb 2006 00:52:12 -0500 Subject: Re: command line arguments From: Martin Hunt To: "Frank Ch. Eigler" Cc: systemtap@sources.redhat.com In-Reply-To: <20060223224218.GE20902@redhat.com> References: <20060223224218.GE20902@redhat.com> Content-Type: text/plain Organization: Red Hat Inc. Date: Fri, 24 Feb 2006 05:52:00 -0000 Message-Id: <1140760330.5306.3.camel@dragon> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-3.fc4) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/msg00614.txt.bz2 On Thu, 2006-02-23 at 17:42 -0500, Frank Ch. Eigler wrote: > # stap -e 'probe kernel.function(@1) { print($2) }' sys_open 4 > > The @ vs $ distinction encodes whether the numbered argument should be > pasted as a string or number literal. I considered guessing but > heuristics don't seem to belong somewhere so critical. Why not do things the standard way and just pass all the args in as strings? Encoding the type in the args makes the command line very inflexible. No way to do variable args. No way to do standard options, etc. Martin