【问题标题】:Were jprobes removed from kernel v4?jprobes 是否从内核 v4 中删除?
【发布时间】:2019-07-24 06:28:18
【问题描述】:

v3 中有一个jprobe_example.c。但是v4 中缺少它。我尝试编译具有内核 v4 的 v3 示例,它可以给我jprobe_example.ko,但是当我尝试insmod 它时,它失败了

insmod: ERROR: could not insert module jprobe_example.ko: Operation not permitted.

/var/log/syslogregister_jprobe failed, returned -38

另外两个例子是insmod-ed 很好。所以,问题是,jprobes 是否从内核 v4 中删除?为什么我可以编译模块而不是insmod呢?

【问题讨论】:

    标签: linux-kernel kernel-module kprobe


    【解决方案1】:

    jprobes 在 Linux 内核中已被弃用,示例文件已在提交 9be95bd 中删除:

    commit 9be95bdc53c12ada23e39027237fd05e1393d893
    Author: Masami Hiramatsu <mhiramat@kernel.org>
    Date:   Fri Oct 6 08:15:57 2017 +0900
    
        kprobes: Remove the jprobes sample code
    
        Remove the jprobes sample module because jprobes are deprecated.
    
        [...]
    

    该提交已在 4.15-rc1 中合并。

    -38 is -ENOSYS,无效系统调用号的错误代码。

    【讨论】:

      猜你喜欢
      • 2015-01-19
      • 2017-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多