上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 64 下一页

2023年4月20日

RT-Mutex-3——实现分析-pi-futex与rt-mutex

摘要: 一、rt-mutex 的原理 PI-futex是通过rt mutex来实现的,因此我们这里简单的聊一聊内核的这个PI-aware mutex。 从rt mutex的视角看任务: rt_mutex_waiter 用来抽象一个阻塞在 rt mutex 的任务:task 成员指向这个任务,lock 成员指 阅读全文

posted @ 2023-04-20 22:27 Hello-World3 阅读(241) 评论(0) 推荐(0) 编辑

2023年4月15日

Android中GC—初探-1—触发时机和条件

摘要: 一、GC 简介 Java 对象的创建由 Allocator 负责,回收由 Collector 负责。从 Android O 开始,对于前台应用默认的 GC Collector 是 CC(Concurrent Copying) Collector,与之相匹配的 Allocator 则是 Region- 阅读全文

posted @ 2023-04-15 12:20 Hello-World3 阅读(479) 评论(0) 推荐(0) 编辑

2023年3月24日

Makefile笔记(5)——经典案例

摘要: 1. Makefile中使用shell脚本 msm-5.10/tools/testing/selftests/futex$ cat Makefile # SPDX-License-Identifier: GPL-2.0 SUBDIRS := functional TEST_PROGS := run. 阅读全文

posted @ 2023-03-24 00:01 Hello-World3 阅读(35) 评论(0) 推荐(0) 编辑

2023年3月20日

调度器47—上下文切换

摘要: 1. current上下文切换时刻 //调用路径 __schedule //整个切换都是关local irq的 context_switch //函数最后才调用它 switch_to cpu_switch_to //cpu_switch_to 实现 //arch/arm64/include/asm/ 阅读全文

posted @ 2023-03-20 11:00 Hello-World3 阅读(101) 评论(0) 推荐(0) 编辑

2023年3月6日

Cgroup学习笔记4—相关DEBUG

摘要: 一、相关DEBUG接口 1. cat /proc/mounts | grep cgroup 可以查看每个子系统挂载位置等信息 # cat /proc/mounts | grep cgroup none /dev/blkio cgroup rw,nosuid,nodev,noexec,relatime 阅读全文

posted @ 2023-03-06 11:29 Hello-World3 阅读(135) 评论(0) 推荐(0) 编辑

2023年3月3日

Cgroup学习笔记3—代码实现—相关结构和全局变量

摘要: 基于 LInux-5.10 一、相关结构 1. 通过多次的 #define 和 #undef SUBSYS 宏来展开 cgroup_subsys.h 中通过 deconfig 使能的 cgroup 子系统来填充相关结构体。 在 include/linux/cgroup-defs.h 中以 SUBSY 阅读全文

posted @ 2023-03-03 11:34 Hello-World3 阅读(419) 评论(0) 推荐(0) 编辑

2023年2月23日

MTK平台总结

摘要: 1. 通过cmdline参数不对printk打印速率进行限制:mt_boot.c kcmdline_append(" ignore_loglevel=1 printk.devkmsg=on "); 2. MTK内核低于5.10项目定频方法 (1) 通过 hard_userlimit_max/min_ 阅读全文

posted @ 2023-02-23 14:56 Hello-World3 阅读(405) 评论(0) 推荐(0) 编辑

2023年2月18日

调度器45—wake_affine

摘要: 基于 Linux-5.10 一、wake_affine 简介 1. 背景 在进程唤醒选核路径中, wake_affine 倾向于将被唤醒进程(wakee)尽可能安排在 waker所在 CPU 上, 这样考虑的原因是: 有唤醒关系的进程是相互关联的, 尽可能地运行在具有 cache 共享的调度域中, 阅读全文

posted @ 2023-02-18 22:57 Hello-World3 阅读(208) 评论(0) 推荐(0) 编辑

2023年2月16日

调度器30—调度相关结构体—p->flags

摘要: 一、PF_EXITING 1. 赋值路径 各驱动和内核机制中直接调用 SYSCALL_DEFINE1(exit, int, error_code) //exit.c do_exit(code); //exit.c exit_signals(tsk); //signal.c tsk->flags |= 阅读全文

posted @ 2023-02-16 22:44 Hello-World3 阅读(53) 评论(0) 推荐(0) 编辑

调度器42—进程exit退出流程

摘要: 基于Linux-5.10 一、do_exit()简要流程 1. 执行路径 各驱动和内核机制中直接调用 SYSCALL_DEFINE1(exit, int, error_code) //exit.c 将 (error_code&0xff)<<8 传给参数 code do_exit(code); if 阅读全文

posted @ 2023-02-16 22:20 Hello-World3 阅读(137) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 64 下一页

导航