随笔分类 - 内核调试
摘要:概述 __init, __initdata等属性标志,是要把这种属性的代码放入目标文件的.init.text节,数据放入.init.data节──这一过程是通过编译内核时为相关目标平台提供了xxx.lds链接脚本来指导ld完成的。 对编译成module的代码和数据来说,当模块加载时,__init属性
阅读全文
摘要:问题 1. AttributeError: 'BPF' object has no attribute 'get_syscall_fnname' 解决:
阅读全文
摘要:目的 使用qemu搭建一个arm开发平台的内核调试环境,支持程序运行和内核模块的挂载。 所有脚本和配置文件 "git地址" 构建过程 1.搭建交叉编译工具 交叉编译工具使用arm linux gnueabi,如果有多个版本使用update alternative工具进行多个版本的控制。 安装arm的
阅读全文
摘要:The linux kernel gathers samples using ‘perf’ performance monitor without affecting the latencies. These include getting interrupt times. If interrupt
阅读全文
摘要: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->
阅读全文

浙公网安备 33010602011771号