Re: [dtrace-discuss] Changing function arguments or result

2008-10-04 Thread Ryan
> > On a more general note, being new to DTrace I read the "how I patched a > > system call for an errant third party program" description and deduced > > that "fixing" programs (not just observing how they fail :-) is one of > > its design purposes. Am I mistaken, or is changing parameters/return

Re: [dtrace-discuss] Changing function arguments or result

2008-02-19 Thread michael schuster
Perry The Cynic wrote: > Assigning to uregs[] (as per RFE 5005776) seems useful but much inferior > to assigning to arg* (or args[]). Why be architecture-specific when you > can be source-specific? > > On a more general note, being new to DTrace I read the "how I patched a > system call for an err

Re: [dtrace-discuss] Changing function arguments or result

2008-02-19 Thread Perry The Cynic
Assigning to uregs[] (as per RFE 5005776) seems useful but much inferior to assigning to arg* (or args[]). Why be architecture-specific when you can be source-specific? On a more general note, being new to DTrace I read the "how I patched a system call for an errant third party program" descrip

Re: [dtrace-discuss] Changing function arguments or result

2008-02-18 Thread Adam Leventhal
This isn't possible today, but it's an RFE that has existed for quite awhile. Take a look at this old mail thread: http://opensolaris.org/jive/thread.jspa?messageID=36261θΆ₯ - ahl On Feb 18, 2008, at 7:48 PM, Perry The Cynic wrote: > (This question is about the Mac OS X version of dtrace, bu

[dtrace-discuss] Changing function arguments or result

2008-02-18 Thread Perry The Cynic
(This question is about the Mac OS X version of dtrace, but I'm told they don't do anything special there.) I can use copyout() to modify the program's memory (with -w) and thus patch up errant functions' memory in user space. But what if I need to patch a function's return value, or its argume