[lttng-dev] lttng kretprobe issue

tarek slaymia tarek.slaymia at gmail.com
Mon Jun 2 16:12:33 EDT 2014


Hi all

i replace a syscall function address of sys_write by my_own_write function
using an LKM module as follow:

xchg(&sys_call_table[__NR_write],my_own_write);

In the normal case the content of sys_call_table[__NR_write] address
changes and it displays the address of my_own_write , i verify this using a
simple printk and i see that the address changes.

I have an issue when tracing this change using lttng kretprobe , i use the
following event :

lttng enable-event sys_write -k --function sys_write

 The ip value of sys_write in the lttng traces ( the same address of
sys_call_table[__NR_write] ) remains the same even after changing it by the
new function address (address of my_own_write)
Why the ip value of sys_write syscall displayed in lttng traces remains the
same even after changing it ?

Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140602/560d1f93/attachment-0001.html>


More information about the lttng-dev mailing list