This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Probing symbols that are not EXPORT()ed
- From: Li Guanglei <guanglei at cn dot ibm dot com>
- To: Alan David Brunelle <Alan dot Brunelle at hp dot com>
- Cc: systemtap at sourceware dot org
- Date: Fri, 09 Jun 2006 07:26:43 +0800
- Subject: Re: Probing symbols that are not EXPORT()ed
- Organization: IBM CSTL
- References: <44885B41.5020501@hp.com>
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