上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页
摘要: ftrace code ftrace event kmem:rss_stat trace event definition include/trace/events/kmem.h TRACE_EVENT(rss_stat, TP_PROTO(struct mm_struct *mm, int mem 阅读全文
posted @ 2021-09-25 19:13 aspirs 阅读(226) 评论(0) 推荐(0) 编辑
摘要: android malloc_debug tool malloc_debug使用方法 130|console:/ # cat /data/local.prop libc.debug.malloc.options=backtrace=16 guard=8 fill_on_free=16 free_tr 阅读全文
posted @ 2021-09-24 17:30 aspirs 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: linux kernel input event处理流程 input驱动会调用input_register_device()来注册device到input framework; input设备驱动接收到时间输入事件时(接收的方式一般是硬件interrupt),会call input_event()上 阅读全文
posted @ 2021-09-12 20:06 aspirs 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: linux kernel boot sequence early_param回调执行时间 [ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.116+ #7[ 0.000000] Hardware name: machine_name(D 阅读全文
posted @ 2021-09-11 14:04 aspirs 阅读(176) 评论(0) 推荐(0) 编辑
摘要: linux驱动入口函数module_init何时被调用 被上面的宏处理过后,变成__initcall_func6 __used加入到内核映像的".initcall"区。内核的加载的时候,会搜索".initcall"中的所有条目,并按优先级加载它们,普通驱动程序的优先级是6。其它模块优先级列出如下:值 阅读全文
posted @ 2021-09-10 15:11 aspirs 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 一个简单字符驱动kernel module以及对应测试程序example module Makefile ifneq ($(KERNELRELEASE),) MODULE_NAME = slub_debug_test_module $(MODULE_NAME)-objs := slub_debug_ 阅读全文
posted @ 2021-09-05 20:12 aspirs 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 一个简单的android测试程序的Android.bp example如下,在android根目录下make slub_debug_test.bin即可: cc_binary { srcs: ["slub_debug_test.c"], name: "slub_debug_test.bin", pr 阅读全文
posted @ 2021-09-05 18:51 aspirs 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 内联汇编inline assembly(ARM) 而 C 中嵌入汇编代码由 gcc 编译器实现的,实现也非常简单,使用由编译器提供的 asm 或者 __asm__ 关键字即可,这两者没有任何区别,然后将需要执行的汇编指令使用("")包含起来即可,对应的汇编指令就会被执行。 我们来看看下面的嵌入汇编代 阅读全文
posted @ 2021-09-05 18:09 aspirs 阅读(2277) 评论(0) 推荐(1) 编辑
摘要: usb device connect kernel log 08-13 10:00:15.220 <4>[ 2790.586965] ==20201013==> hub_port_init 1 #008-13 10:00:15.220 <4>[ 2790.586974] Plug in USB Po 阅读全文
posted @ 2021-08-27 22:55 aspirs 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 在看 代码时发现,如果设置了MAP_FIXED标志,函数就做一些极其简单的检查,然后就把你指定的addr返回给你,代表你查找的空闲的线性区找到了。 unsigned long 1371 get_unmapped_area_prot(struct file *file, unsigned long a 阅读全文
posted @ 2021-08-22 18:55 aspirs 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 41 下一页