Can I replace a Linux kernel function with a module?

前端 未结 4 764
执念已碎
执念已碎 2020-12-24 10:08

Im getting into kernel work for a bit of my summer research. We are looking to make modifications to the TCP, in specific RTT calculations. What I would like to do is repl

4条回答
  •  臣服心动
    2020-12-24 10:33

    I think what you want is Kprobe.

    Another way that caf has mentioned is to add a hook to the original routine, and register/unregister hook in the module.

提交回复
热议问题