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: [PATCH] Fix sematic error: empty struct


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


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