随笔分类 -  内核调试

摘要:概述 __init, __initdata等属性标志,是要把这种属性的代码放入目标文件的.init.text节,数据放入.init.data节──这一过程是通过编译内核时为相关目标平台提供了xxx.lds链接脚本来指导ld完成的。 对编译成module的代码和数据来说,当模块加载时,__init属性 阅读全文
posted @ 2020-02-28 22:35 linengier 阅读(2769) 评论(0) 推荐(0)
摘要:问题 1. AttributeError: 'BPF' object has no attribute 'get_syscall_fnname' 解决: 阅读全文
posted @ 2019-11-28 11:49 linengier 阅读(728) 评论(0) 推荐(0)
摘要:目的 使用qemu搭建一个arm开发平台的内核调试环境,支持程序运行和内核模块的挂载。 所有脚本和配置文件 "git地址" 构建过程 1.搭建交叉编译工具 交叉编译工具使用arm linux gnueabi,如果有多个版本使用update alternative工具进行多个版本的控制。 安装arm的 阅读全文
posted @ 2019-11-23 12:01 linengier 阅读(1077) 评论(0) 推荐(0)
摘要:The linux kernel gathers samples using ‘perf’ performance monitor without affecting the latencies. These include getting interrupt times. If interrupt 阅读全文
posted @ 2019-02-18 18:24 linengier 阅读(13454) 评论(0) 推荐(0)
摘要:1.current的应用current 指针指向当前在运行的进程,内核代码可以通过使用 current 来使用进程特定的信息。指向 task_struct 的current指针在内核堆栈内,是一个全局项。定义:/arch/x86/include/asm/current.h #define current get_current()应用目的:查看当前谁在使用内核你关心的那段代码的时候。应用方法:printk(KERN_INFO "The cuurent process commond : \"%s\" the pid :%i\n", current-> 阅读全文
posted @ 2013-04-02 15:46 linengier 阅读(156) 评论(0) 推荐(0)