Sean McGrath - Sun Microsystems Ireland
2007-May-15 07:03 UTC
[dtrace-discuss] copyout or bcopy ?
I''m wanting to be able to modify an arg passed to a given function at the entry point of the function. The arg would usually be of type char *, i.e. a string. Is is better to use copyout or bcopy ? Or is there no real preference ? Regards, -- Sean. .
The copyout() subroutine lets you modify data in a traced user process. The bcopy() subroutine is for modifying variables only in your D program itself. They are very different in what they allow; you''ll need to use copyou() for what you''re trying to do. Adam On Tue, May 15, 2007 at 08:03:39AM +0100, Sean McGrath - Sun Microsystems Ireland wrote:> > > I''m wanting to be able to modify an arg passed to a given function at > the entry point of the function. > The arg would usually be of type char *, i.e. a string. > > Is is better to use copyout or bcopy ? > Or is there no real preference ? > > Regards, > > -- > Sean. > . > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl