上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 66 下一页

2021年11月24日

Linux Thermal 学习笔记

摘要: 一、thermal 模块简介 1. 核心为 thermal_core。可以获取温度的设备抽象为 thermal_zone_device, 如Temp Sensor、NTC(板上的热敏电阻)等。控制温度的设备抽象为 thermal_cooling_device, 如风扇、CPU、DDR、GPU等。温控 阅读全文

posted @ 2021-11-24 21:08 Hello-World3 阅读(8614) 评论(0) 推荐(0) 编辑

2021年11月20日

HIDL学习笔记_3

摘要: HIDL系列四 绑定式的案例及理解(多篇): https://chendongqi.me/2019/09/08/hidl-binderizd/Android Treble 架构下的HIDL:https://ruleizhou.github.io/2019/07/25/Android-Treble-% 阅读全文

posted @ 2021-11-20 14:37 Hello-World3 阅读(202) 评论(0) 推荐(0) 编辑

2021年11月19日

mtrace分析内存泄漏

摘要: 1. 测试程序 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> #include <mcheck.h> static void memory_leak_test() { char *p 阅读全文

posted @ 2021-11-19 16:05 Hello-World3 阅读(100) 评论(0) 推荐(0) 编辑

2021年11月7日

tracer ftrace笔记(3)——宏展开和hook和注册——lengency

摘要: 一、ftrace的宏 1. struct tracepoint 结构 使用 struct tracepoint 变量来描述一个 trace point。 //include/linux/tracepoint-defs.h struct tracepoint { const char *name; / 阅读全文

posted @ 2021-11-07 23:15 Hello-World3 阅读(3053) 评论(0) 推荐(0) 编辑

2021年11月3日

prctl系统调用设置进程名

摘要: 1. prctl 系统调用函数 $ man 2 prctl //prctl - operations on a process //#include <sys/prctl.h> int prctl(int option, unsigned long arg2, unsigned long arg3, 阅读全文

posted @ 2021-11-03 22:58 Hello-World3 阅读(1126) 评论(0) 推荐(0) 编辑

2021年11月1日

Java 中的 super 关键字

摘要: 1. 使用 super 可以从子类中调用父类的构造方法、普通方法、访问父类属性。与 this 调用构造方法的要求一样,语句必须放在子类的构造方法的首行。 2. 访问属性、调用普通方法、调用构造方法 this 与 super 的区别(1) 访问属性:this 访问本类中的属性,如果本类中没有此属性,则 阅读全文

posted @ 2021-11-01 00:16 Hello-World3 阅读(183) 评论(0) 推荐(0) 编辑

2021年10月24日

调度器12—PELT算法中的预估利用率 util_est

摘要: 基于MTK Linux-4.14 一、PELT 中预估利用率简介 由于在 PELT 算法下任务的 util 增加减少的都比较慢,对于长时间休眠后的重负载任务,其 util 增加的比较慢,导致不能及时触发提频和迁核。为了补救 PELT 的这一缺陷,引入了预估负载。在任务(休眠)出队列时更新任务的预估负 阅读全文

posted @ 2021-10-24 18:56 Hello-World3 阅读(1120) 评论(0) 推荐(0) 编辑

调度器11—调度相关trace汇总—MTK

摘要: 基于MTK Linux-4.14 1. sched_util ——负载调频 打印: RenderThread-2837 [006] d.h2 8163.520041: sched_util: cid=1 next=1624000 last_freq_update_time=8163524121923 阅读全文

posted @ 2021-10-24 18:48 Hello-World3 阅读(2332) 评论(0) 推荐(0) 编辑

2021年10月21日

调度器9—调度相关trace汇总—Qcom

摘要: 1. sched_find_best_target 打印: cat-32758 [001] d..4 5235.529561: sched_find_best_target: pid=18090 comm=kworker/u16:25 start_cpu=0 best_idle=-1 most_sp 阅读全文

posted @ 2021-10-21 22:57 Hello-World3 阅读(1245) 评论(0) 推荐(0) 编辑

2021年10月16日

调度器7—TASK_UNINTERRUPTIBLE和TASK_INTERRUPTIBLE

摘要: 一、D状态简介 1. D状态的由来 __schedule(bool preempt) { ... if (prev != next) { trace_sched_switch(preempt, prev, next); } ... } trace_sched_switch() 中若 prev->st 阅读全文

posted @ 2021-10-16 20:18 Hello-World3 阅读(1402) 评论(0) 推荐(0) 编辑

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 66 下一页

导航