On Tue, Sep 09, 2008 at 08:16:37PM -0500, Danhua Shao wrote: > > According to my understandign, in sdt_subr.c, the following argument > translation rule: > { "nfsv3", "op-setattr-start", 1, 1, "nfsv3oparg_t *", "nfsv3opinfo_t *" }, > > will trigger the following translator: > > translator nfsv3opinfo_t < nfsv3oparg_t *P > { > noi_xid = ((struct svc_req *)arg0)->rq_xprt->xp_xid; > noi_cred = (cred_t *)arg1; > noi_curpath = (arg2 == 0 || ((vnode_t *)arg2)->v_path == NULL) ? > "<unknown>" : ((vnode_t *)arg2)->v_path; > }; > > So the first three arguments in the DTRACE_NFSV3() macros will be accessed to > construct a nfsv3opinfo_t value. > > Is it right?
That's exactly right. Adam -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl