On Wednesday 21 February 2007 08:19, Baruch Even wrote:
> * Tzahi Fadida <[EMAIL PROTECTED]> [070221 02:38]:
> I'm not aware of a way to do what you ask (redirect the function to you
> and be able to call it), you can however look at kprobe which is part of
> the kernel. kprobe allows you to stick trap points into the kernel and
> be called at that point, I don't remember the exact name but they have a
> method to stick the probe at the end of the function (and also at the
> beginning or arbitrary location).
>
> I've used this method to trace methods and it's fairly expensive since
> it uses int3 trap points to do its work but if performance is not
> critical for you it should be fine.

kprobe is what i was looking for. Actually, jprobe so i cal also view the 
function parameters i am attaching to. The problem is that kprobe does not 
appear on the uml(user mode linux) list in menuconfig which probably means it 
is not supported there. -> i need to compile a real kernel or use vmware or 
something like that. I prefer to continue to use uml.
Let's say i do wish to change the kernel code. How do i add a code that will 
refer to my module once it is loaded? I.e. i wish to add a stub in that 
function in the kernel that will call a function in my module if it is up.

>
> Baruch

-- 
Regards,
        Tzahi.
--
Tzahi Fadida
Blog: http://tzahi.blogsite.org | Home Site: http://tzahi.webhop.info
WARNING TO SPAMMERS:  see at 
http://members.lycos.co.uk/my2nis/spamwarning.html

================================================================To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to