上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 41 下一页
摘要: user space进程退出时,进程的mmap资源将由kernel进行unmap user space进程退出时,会调用exit_mmap()将mmap都释放掉,callstack如下: do_exit exit_mm mmput __mmput exit_mmap mm/mmap.c /* Rel 阅读全文
posted @ 2021-11-02 14:57 aspirs 阅读(472) 评论(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 阅读(34) 评论(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 阅读(278) 评论(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 阅读(46) 评论(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 阅读(359) 评论(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 阅读(1674) 评论(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 阅读(1449) 评论(0) 推荐(0)
摘要: kill一个pthread_test.bin测试程序主线程、子线程退出kernel flow 以下blog基于andorid Q,kernel 4.19 pthread_test.bi是执行pthread_test.bin的主线程,在这个主线程里会创建pthread_test_name线程 执行ki 阅读全文
posted @ 2021-10-22 12:02 aspirs 阅读(134) 评论(0) 推荐(0)
摘要: signal bit operation include/linux/signal.h #define _SIG_SET_BINOP(name, op) \ static inline void name(sigset_t *r, const sigset_t *a, const sigset_t 阅读全文
posted @ 2021-10-22 11:03 aspirs 阅读(72) 评论(0) 推荐(0)
摘要: pthread PTHREAD_CREATE_DETACHED pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); 在任何一个时间点上,线程是可结合的(joinable),或者是分离的(detached)。一个可结合的线程能够被其 阅读全文
posted @ 2021-10-20 22:10 aspirs 阅读(52) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 41 下一页