From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 04:11:49 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75BB6106566C for ; Mon, 15 Aug 2011 04:11:49 +0000 (UTC) (envelope-from ashley.wil@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 371D38FC12 for ; Mon, 15 Aug 2011 04:11:48 +0000 (UTC) Received: by vxh11 with SMTP id 11so4802815vxh.13 for ; Sun, 14 Aug 2011 21:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=kY1mUR3Lt6AYdaSunF6z2YZmnCrS+CGqvCZXXYDk5FI=; b=nBM7QsYiAP0Z0JN3Kvn3w6KxMsNzIl2Y2/hAyKwksA6eaebU/vw0KnX7Qii97JlIof br5SwZzBgQM40k5+OViYRIXSSgh1y06H1DU+msV5e+e4jEZ1aj8+NtYkI4MEEbmB/jAy VpFIvC8SiEuOA4ygxspBUSL6pPWhGidqtrR7k= MIME-Version: 1.0 Received: by 10.52.67.146 with SMTP id n18mr3108413vdt.464.1313379627492; Sun, 14 Aug 2011 20:40:27 -0700 (PDT) Received: by 10.52.182.197 with HTTP; Sun, 14 Aug 2011 20:40:27 -0700 (PDT) Date: Mon, 15 Aug 2011 13:40:27 +1000 Message-ID: From: Ashley Williams To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: dtrace function arguments X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 04:11:49 -0000 I'm looking for a faster way to get more verbose information about dtrace function arguments. For example. Say, I want to know more about the funciton syscall:freebsd32:connect:return. I'd start off by doing a listing: # dtrace -lvf connect -----snip------- 43723 syscall freebsd32 connect return Probe Description Attributes Identifier Names: Private Data Semantics: Private Dependency Class: Unknown Argument Attributes Identifier Names: Private Data Semantics: Private Dependency Class: ISA Argument Types args[0]: int args[1]: caddr_t args[2]: int >From the output of the listing, I can see quite clearly there are three arguments for this function - int, caddr_t, int; but I can't see from this output what these refer to. I could probably find the answer by digging through header files and source code, but this isn't exactly efficient. Is there an easier way to find more information about functions (not specifically this one)?