This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Probing symbols that are not EXPORT()ed


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]