[PATCH] Fix sematic error: empty struct
Frank Ch. Eigler
fche@redhat.com
Fri Jun 27 20:50:00 GMT 2008
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
More information about the Systemtap
mailing list