This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Getting at an address...
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Alan D. Brunelle" <Alan dot Brunelle at hp dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: 27 Jun 2006 10:49:12 -0400
- Subject: Re: Getting at an address...
- References: <44A14132.60904@hp.com>
"Alan D. Brunelle" <Alan.Brunelle@hp.com> writes:
> I am working on trying to track down a potential hot lock used within
> the QLA device driver, and would like to sue STAP
Oh no! Call in the lawyers!
> [...] what I want is the address of
> $sp->lun_queue->fclun->fcport->ha->hardware_lock
OK.
> what follows "works" in that I think I get the address of
> $sp->lun_queue->fclun->fcport->ha [...]
Actually your function returns the address of a local copy of the
pointer.
But this should get you closer:
# %{
# #include <..../qla_def.h> /* for scsi_qla_host */
# %}
#
# function hwl_addr:long (arg:long)
# %{
# THIS->__retvalue = & ((struct scsi_qla_host *) (THIS->arg))->hardware_lock;
# %}
#
# probe module("*").function("qla2x00_start_scsi")
# [...]
# lockmap = hwl_addr($sp->lun_queue->fclun->fcport->ha)
# [...]
- FChE