上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页
摘要: Chapter 3 Page Table Management Linux layers the machine independent/dependent layer in an unusual manner in comparison to other operating systems [CP 阅读全文
posted @ 2020-03-31 12:41 aspirs 阅读(172) 评论(0) 推荐(0) 编辑
摘要: An introduction to compound pages Your editor was digging through a patch set that makes changes involving compound pages when he realized that his un 阅读全文
posted @ 2020-03-30 18:03 aspirs 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 最后一级的页表项不仅仅包含了指向页的内存地址的指针,它也包含了页的一些特定信息,这些信息是附加在多余的比特位上的,不过这些信息是特定于CPU的。下面来看看这些位的意义: _PAGE_PRESENT 指定了虚拟内存页是否存在于内存之中,这个之前的pte_present函数里有使用 _PAGE_ACCE 阅读全文
posted @ 2020-03-29 22:37 aspirs 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 14.172 Virtual Memory Management, Page Table, Prefix Addressing https://www.youtube.com/watch?v=WxYiXDSyiZ0 Linux分页机制之分页机制的实现详解--Linux内存管理(八) https:// 阅读全文
posted @ 2020-03-29 21:48 aspirs 阅读(744) 评论(0) 推荐(0) 编辑
摘要: ps -ef|grep php-fpm|awk '{print " -p " $2" -s 10000 -o /tmp/strace_"$2".log"}'|xargs strace 抽取匹配关键字附近的字串 比如匹配下面log中的took以及其后的字符串 awk '{match($0,/.+(to 阅读全文
posted @ 2020-03-22 18:09 aspirs 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316692.html 简介 strace常用来跟踪进程执行时的系统调用和所接收的信号。 在Linux世界,进程不能直接访问硬件设备,当进程需要访问硬件设备(比如读取磁盘文件,接收网络数 阅读全文
posted @ 2020-03-22 15:34 aspirs 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 调用过程: 用户空间->内核空间INT 0x80(封装在C库函数中) -->system_call(系统调用处理程序)-->系统调用服务例程 -->内核程序系统调用时通过软中断指令INT 0x80实现的,这条指令会让系统跳转到一个预先设置好的内核地址,指向系统调用处理程序system_call。 系 阅读全文
posted @ 2020-03-21 19:08 aspirs 阅读(928) 评论(0) 推荐(0) 编辑
摘要: linux系统调用kernel code kernel\include\uapi\asm-generic\unistd.h kernel/sys.c SYSCALL_DEFINE2(setpgid, pid_t, pid, pid_t, pgid) { struct task_struct *p; 阅读全文
posted @ 2020-03-21 19:05 aspirs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 问题 在开发过程中发现一个问题,我们需要在开机的时候判断硬件版本号去启动服务, 服务的名字是ledservice和ledservice4,但是发现每次烧录完固件后,服务启动不 成功,需要再复位重启一次,服务才可以正常启动。 日志如下 [ 5.328699] init: Service 'logd-r 阅读全文
posted @ 2020-03-21 14:32 aspirs 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 在service.cpp中的Start()调用ExpandArgsAndExecv() system/core/init/service.cpp static bool ExpandArgsAndExecv(const std::vector<std::string>& args) { std::v 阅读全文
posted @ 2020-03-20 15:37 aspirs 阅读(348) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 41 下一页