mirror of https://github.com/dynup/kpatch
29227a0fbd
When multiple patch modules patch the same function, there's no need to patch all the intermediate functions. Just hook them all into the original function and use the ftrace handler to find the newest one. Also use a mutex in the register/unregister functions to protect changes to kpatch_num_registered, kpatch_func_hash and calls to the ftrace functions by other register/unregister invocations. |
||
---|---|---|
.. | ||
core | ||
patch | ||
Makefile |