上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页
摘要: per cpu variable per cpu变量可以export出来给其它模块使用 方法: 1.define per cpu variable DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}}; EXPORT_PER_C 阅读全文
posted @ 2021-12-21 12:05 aspirs 阅读(245) 评论(0) 推荐(0) 编辑
摘要: migration/* kernel thread用途 console:/proc/13 # ps -Af |grep migration root 13 2 0 02:29:43 ? 00:00:00 [migration/0] root 16 2 0 02:29:43 ? 00:00:00 [m 阅读全文
posted @ 2021-12-18 20:47 aspirs 阅读(1141) 评论(0) 推荐(0) 编辑
摘要: soft lookup检测机制 soft lookup是如何检测的,它实现的文件在kernel/watchdog.c 它主要是会起一个hrtimer定时器,周期性产生hrtimer interrupt,这个irq handler函数是watchdog_timer_fn() 在这个irq handle 阅读全文
posted @ 2021-12-18 19:52 aspirs 阅读(679) 评论(0) 推荐(0) 编辑
摘要: sched misc 查看sched信息命令 cat /proc/sched_debugcat /proc/schedstatsysctl:/proc/sys/kernel/sched_*sched_child_runs_first sched_rt_period_ussched_domain/ s 阅读全文
posted @ 2021-12-18 18:14 aspirs 阅读(144) 评论(0) 推荐(0) 编辑
摘要: ext4 fs 关于ext4文件系统概述 https://www.cnblogs.com/eflypro/p/14075188.html 阅读全文
posted @ 2021-12-16 14:37 aspirs 阅读(59) 评论(0) 推荐(0) 编辑
摘要: read file page cache generic_file_buffered_read()里的index表示此次read文件的位置,在要读的某个文件里的位置,这个index是以page为单位的last_index表示此次read的结束位置,同样其单位是page 这两个变量的值分别是根据kio 阅读全文
posted @ 2021-12-13 19:26 aspirs 阅读(136) 评论(0) 推荐(0) 编辑
摘要: get_cpu_mask /* cpu_bit_bitmap[0] is empty - so we can back into it */ #define MASK_DECLARE_1(x) [x+1][0] = (1UL << (x)) #define MASK_DECLARE_2(x) MAS 阅读全文
posted @ 2021-12-08 20:15 aspirs 阅读(222) 评论(0) 推荐(0) 编辑
摘要: struct arch_hw_breakpoint结构体 watchpoint or breakpoint(type)、watchpoint监测的数据长度、监测的地址,这些信息都保存在arch_hw_breakpoint结构体里 struct arch_hw_breakpoint { u64 add 阅读全文
posted @ 2021-12-06 20:25 aspirs 阅读(170) 评论(0) 推荐(0) 编辑
摘要: cpumask struct cpumask __cpu_possible_mask struct cpumask __cpu_possible_mask在一个4core的SOC上面低4bit分别表示cpu0-cpu3,表示一个系统上配置了多少个cpu(core),不管它的状态是active还是in 阅读全文
posted @ 2021-12-06 17:09 aspirs 阅读(381) 评论(0) 推荐(0) 编辑
摘要: kernel BUG_ON macro的实现以及brk指令触发异常后的异常处理callstack kernel里的两个macro BUG_ON(condition),如果condition条件满足,判断为真,则会造成一个debug exception; BUG(),这个没有条件判断,调用它则会直接造 阅读全文
posted @ 2021-12-02 18:31 aspirs 阅读(1134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 41 下一页