This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] Fix sematic error: empty struct
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: James Bottomley <James dot Bottomley at HansenPartnership dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 27 Jun 2008 14:13:42 -0400
- Subject: Re: [PATCH] Fix sematic error: empty struct
- References: <1214506750.3374.2.camel@localhost.localdomain> <y0miqvwastl.fsf@ton.toronto.redhat.com> <1214576542.3394.5.camel@localhost.localdomain>
Hi -
By the way, for the $qc->scsi.... expression problem in the first
case, did you consider/try using embedded-C code to do the pointer
dereferencing?
as in:
%{
#include "linux/scsi-whatever."
%}
function filter_p:long (ptr:long) %{
struct scsi_device* q = (struct scsi_device*) THIS->ptr;
THIS->__retvalue = (q->scsicmd->.... & ... );
%}
probe module("libata").function("ata_qc_issue") {
if (filter_p ($qc)) next;
}
- FChE