This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
dynamically replace the buggy function in kernel
- From: "Zhang, Yanmin" <yanmin dot zhang at intel dot com>
- To: <systemtap at sources dot redhat dot com>
- Cc: "Keshavamurthy, Anil S" <anil dot s dot keshavamurthy at intel dot com>, "Mao, Bibo" <bibo dot mao at intel dot com>
- Date: Wed, 23 Nov 2005 11:25:42 +0800
- Subject: dynamically replace the buggy function in kernel
Hi,
I have an idea. We could find buggy functions in kernel and want to
replace them dynamically.
Here is the scenario. After jprobe handler is executed, it just returns
without executing the original function. For example, assume function
foo calls function foo2. We want to replace foo2 with a new function
temporarily. We could register a jprobe at foo2. After jprobe handler is
executed, we could just return to function foo without executing the
left foo2.
Any comment?
Yanmin