No, this->entry-pc is not a user-space pointer --- it is not a pointer at all, 
it is an unsigned integer that I would like to convert to a string.

Here is what I'm trying to do:

- I have a structure of type ReadAcqEntry at userspace with various
  numeric fields (unsigned long long type).

- I would like to convert a few of these fields to a string (e.g. for
  the purpose of concatenating it with other strings), and use the
  numerical value of the others.

What I was doing so far is copying the whole structure with:

  this->entry = 
(ReadAcqEntry*)copyin((uintptr_t)&(this->rAcqArr[this->numEntries-1]) , 
sizeof(ReadAcqEntry));

so now this->entry points to the local copy of the structure.  Now I can
access all of the structure's fields as integers (I tested this part and
it works fine), but I am not sure how I can convert some of the fields
to strings.  What I really need is the equivalent of sprintf or itoa...

It seems like stringof requires a pointer, so I am not sure that this is
what I need to use here.

Thanks,
Yossi
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to