Probing symbols that are not EXPORT()ed
Martin Hunt
hunt@redhat.com
Thu Jun 8 19:31:00 GMT 2006
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
More information about the Systemtap
mailing list