上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 39 下一页
摘要: ko kallsyms 在layout_symtab()里确认哪些symbol(symbol包括函数与变量)是属于core_layout里的,将这些属于core_layout的symbol的string长度累加起来,然后会将这个累加长度加到core_layout.size,到时也给它分配内存空间。 阅读全文
posted @ 2021-11-08 21:39 aspirs 阅读(106) 评论(0) 推荐(0)
摘要: 链接脚本(link script)语法 语法 1. 定义一个section,如下是define一个.init.data section *(.init.rodata.* .init.bss)最前面的*是通配符,表示所有.o文件的(.init.rodata.*、.init.bss section) . 阅读全文
posted @ 2021-11-07 20:45 aspirs 阅读(1108) 评论(0) 推荐(0)
摘要: ARM kernel panic misc Code <0>[22925.503588] Code: 05b1a000 ffffffc0 00000000 00000000 (00000ee3) code表示kernel panic时PC地址指向的地址里的数据,用括号括起来是PC地址指向的地址的in 阅读全文
posted @ 2021-11-05 15:48 aspirs 阅读(66) 评论(0) 推荐(0)
摘要: linux signal framework 信号产生&处理流程 信号产生(signal generate) 信号的产生可以是user space通过kill等系统调用给某个线程(目标线程)发送某个signal,此时signal generate的流程如下: 1. 根据pid确定对应的task_st 阅读全文
posted @ 2021-11-03 16:12 aspirs 阅读(195) 评论(0) 推荐(0)
摘要: user space process address space user space process address space 系统调用与内存管理(sbrk、brk、mmap、munmap) https://blog.csdn.net/Apollon_krj/article/details/54 阅读全文
posted @ 2021-10-29 19:28 aspirs 阅读(35) 评论(0) 推荐(0)
摘要: selinux misc selinux class definition in te file system/sepolicy/private/access_vectors 7# 8# Define a common prefix for file access vectors. 9# 10 11 阅读全文
posted @ 2021-10-28 15:31 aspirs 阅读(282) 评论(0) 推荐(0)
摘要: timer misc timer timeout callback callstack [ 99.021468] CPU: 2 PID: 0 Comm: swapper/2 Tainted: P O 4.19.116+ #53 [ 99.029138] Hardware name: xxx(DT) 阅读全文
posted @ 2021-10-27 19:28 aspirs 阅读(52) 评论(0) 推荐(0)
摘要: kernel log buf dump function kmsg_dump_get_buffer() 4.19/kernel/printk/printk.c void kmsg_dump(enum kmsg_dump_reason reason) { struct kmsg_dumper *dum 阅读全文
posted @ 2021-10-27 17:35 aspirs 阅读(374) 评论(0) 推荐(0)
摘要: ARM64 hw watchpoint、breakpoint注册与注销 write_wb_reg()里的switch macro展开 4.19\arch\arm64\kernel\Hw_breakpoint.c static void write_wb_reg(int reg, int n, u64 阅读全文
posted @ 2021-10-25 16:59 aspirs 阅读(1704) 评论(0) 推荐(0)
摘要: files_struct/fdtable解析 include/linux/fdtable.h /* * Open file table structure */ struct files_struct { /* * read mostly part */ atomic_t count; bool r 阅读全文
posted @ 2021-10-23 11:44 aspirs 阅读(1473) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 39 下一页