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: Martin Hunt <hunt at redhat dot com>
- To: Alan David Brunelle <Alan dot Brunelle at hp dot com>
- Cc: systemtap at sourceware dot org
- Date: Thu, 08 Jun 2006 12:29:38 -0700
- Subject: Re: Probing symbols that are not EXPORT()ed
- Organization: Red Hat Inc.
- References: <44885B41.5020501@hp.com>
On Thu, 2006-06-08 at 13:15 -0400, Alan David Brunelle wrote:
> [Sorry for this newbie question...]
>
> How does one probe on a kernel function that does not have an
> EXPORT_SYMBOL()
There is no requirement to have functions exported before they can be
probed.
> For example the following fails:
> probe kernel.function("scsi_dispatch_cmd")
> {
> rqs <<< $cmd->request_bufflen
> }
That function is normally in a module, not in the kernel. So you have to
do either:
probe module("scsi_mod").function("scsi_dispatch_cmd")
OR
probe module("*").function("scsi_dispatch_cmd")
Martin