yes, it is right. The old recycle method isWhen process exits through do_exit() function, it will call schedule()When kretprobe probe schedule() function, if probed process exit thenIs there any process which can exit without go through the do_exit() path?
schedule() function will never return, so some kretprobe instance will
never be recycled. By this patch the parent process will recycle
retprobe instance of probed function, there will be no memory leak of
kretprobe instance. This patch is based on 2.6.16-rc3.
--
function. But if schedule() function is probed by kretprobe, this time
schedule() function will not return never because process has exited.
bibo,mao
In the original path, doesn't the call path of
do_exit()->exit_thread()->kprobe_flush_task(current) recycle the
kretprobe instance? Is there anything misundstood?
--