On Mon, Sep 22, 2014 at 11:01:15PM +0200, Jesus Cea via dtrace-discuss wrote:
> I was wondering about patching a kernel function/usermode function.
> Something like:
> 
> dtrace -w -n 'syscall::fdsync:entry
> /execname=='imap'/ {return (int)0;}'
> 
> to convert "fdsync" for process 'imap' to a NOP during a migration
> process (and knowing that it would be RISKY).
> 
> Or similar patching of user functions.

FWIW, I haven't patched user functions, but I have patched user function
inputs to make the function do what I wanted it to do:

http://blahg.josefsipek.net/?p=453

Jeff.

-- 
A CRAY is the only computer that runs an endless loop in just 4 hours...


-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to