On Mon, Oct 06, 2008 at 01:09:20PM -0500, Nicolas Williams wrote:
> On Mon, Oct 06, 2008 at 12:54:24PM -0500, Jay Anderson wrote:
> > > What build are you running?
> > > 
> > 
> > SunOS pbj 5.11 snv_99 i86pc i386 i86pc
> > 
> > > On Mon, Oct 06, 2008 at 08:21:12AM -0500, Jay Anderson wrote:
> > > > When I attempt to run the DTrace script I get this output:
> > > > 
> > > > dtrace: failed to compile script ./sidfix.d: line 3: probe description 
> > > > pid1261::sid2pid_second_pass:entry does not match any probes
> 
> Very strange!
> 
> Can you post the output of
> 
> % elfdump -s /usr/lib/idmapd | grep sid2pid_second_pass
> 
> ?
> 
> Or even:
> 
> % elfdump -s /usr/lib/idmapd | grep sid2pid
> 
> The symbol should be present.  We stopped stripping executables built by
> the ON consolidation three years ago.

BTW, I just tried it and it works find on build 99.

I'm attaching the script.

Nico
-- 
#!/usr/sbin/dtrace -ws

pid$1::sid2pid_second_pass:entry
{
        self->unres_mapping = *(unsigned int *)copyin(arg0 + 16, 4);
        self->req = arg1;
        self->res = arg2;
        self->res_retcode = *(int *)copyin(self->res, 4);
        self->req_id1_idtype = *(int *)copyin(self->req + 8, 4);
        self->req_id1_sid_prefixp = *(unsigned int *)copyin(self->req + 12, 4);
        self->req_id1_sid_prefix = copyinstr(self->req_id1_sid_prefixp);
        self->req_id1_sid_rid = *(unsigned int *)copyin(self->req + 16, 4);
        self->req_id1namep = *(unsigned int *)copyin(self->req + 24, 4);
        self->req_id1name = copyinstr(self->req_id1namep);
}
pid$1::sid2pid_second_pass:entry
/self->res_retcode != 0 && self->unres_mapping != 0 &&
 self->req_id1_sid_prefix != "" && self->req_id1name == ""/
{
        this->req_id1_idtypep = (int *)copyin(self->req + 8, 4);
        *this->req_id1_idtypep = 4;
        printf("Forcing req->id1.idtype == IDMAP_USID for unresolvable SID 
%s-%u\n",
                self->req_id1_sid_prefix, self->req_id1_sid_rid);
        copyout(this->req_id1_idtypep, self->req + 8, 4);
}
_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss

Reply via email to