From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24131 invoked by alias); 8 Jun 2006 23:26:54 -0000 Received: (qmail 24120 invoked by uid 22791); 8 Jun 2006 23:26:53 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ausmtp05.au.ibm.com (HELO ausmtp05.au.ibm.com) (202.81.18.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Jun 2006 23:25:55 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp05.au.ibm.com (8.13.6/8.13.6) with ESMTP id k58NSxdA7663788 for ; Fri, 9 Jun 2006 09:28:59 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.250.242]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k58NTDFT244620 for ; Fri, 9 Jun 2006 09:29:13 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k58NPpgw008088 for ; Fri, 9 Jun 2006 09:25:51 +1000 Received: from [127.0.0.1] ([9.181.133.250]) by d23av01.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k58NPnTn008058; Fri, 9 Jun 2006 09:25:50 +1000 Message-ID: <4488B233.6050409@cn.ibm.com> Date: Thu, 08 Jun 2006 23:26:00 -0000 From: Li Guanglei Organization: IBM CSTL User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Alan David Brunelle CC: systemtap@sourceware.org Subject: Re: Probing symbols that are not EXPORT()ed References: <44885B41.5020501@hp.com> In-Reply-To: <44885B41.5020501@hp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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-q2/txt/msg00586.txt.bz2 Alan David Brunelle ??: > global rqs > > probe kernel.function("scsi_dispatch_cmd") > { > rqs <<< $cmd->request_bufflen > } > > Alan There is already a probe alias defined in Systemtap for this. /usr/share/systemtap/tapsets/scsi.stp: ... /* Dispatch a command to the low-level driver. */ probe scsi.iodispatching = module("*").function("scsi_dispatch_cmd@drivers/scsi/scsi.c") { host_no = $cmd->device->host->host_no channel = $cmd->device->channel lun = $cmd->device->lun dev_id = $cmd->device->id device_state = $cmd->device->sdev_state data_direction = $cmd->sc_data_direction request_buffer = $cmd->request_buffer req_bufflen = $cmd->request_bufflen } ... And this alias also have some predefined variables for you to use. - Guanglei