linux
贺喜喜
工作踏实肯干,为人诚实善良。兴趣广泛,善于学习。英语良好。
展开
-
一个简单的时间片轮转多道程序内核代码
Prepare the environment in Ubuntu 14.04install QEMUcreate a soft link for QEMUDownload linux kernelDownload patch from Githubxz -d linux-3.9.4.tar.xztar -xvf linux-3.9.4.tarcd linux-3.9.4patch -p1 < .原创 2016-03-06 22:29:18 · 555 阅读 · 0 评论 -
System call using assembly language and C
使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用选择一个系统调用(13号系统调用time除外),系统调用列表参见http://codelab.shiyanlou.com/xref/linux-3.18.6/arch/x86/syscalls/syscall_32.tbl参考视频中的方式使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用根据本周所学知识分析系统调用的原创 2016-03-18 23:06:21 · 789 阅读 · 0 评论 -
Trace the process of the start of Linux
Trace the process of the start of Linux原创 2016-03-13 23:04:22 · 551 阅读 · 0 评论 -
Linux system monitor
topvmstatarguments explanationr :表示运行队列,如果运行队列过大,表示你的CPU很繁忙,一般会造成CPU使用率很高b :表示阻塞的进程数swpd :虚拟内存已使用的大小,如果大于0,表示你的机器物理内存不足了,如果不是程序内存泄露的原因,那么你该升级内存了或者把耗内存的任务迁移到其他机器free :空闲的物理内存的大小buff : 系统占用的缓存大小cache原创 2016-03-26 18:07:20 · 2268 阅读 · 0 评论 -
分析system_call中断处理过程
In this blog, we will do the following tasks:使用gdb跟踪分析一个系统调用内核函数(您上周选择的那一个系统调用),系统调用列表参见http://codelab.shiyanlou.com/xref/linux-3.18.6/arch/x86/syscalls/syscall_32.tbl ,推荐在实验楼Linux虚拟机环境下完成实验。根据本周所学知识分析原创 2016-03-26 16:54:33 · 485 阅读 · 0 评论 -
Recovery from failed upgrade from Ubuntu 14.10 to 15.10
Why upgrade failed?When the upgrade is ongoing, I plugged out the power and the network wire, then Ubuntu hanged and the upgrade stopped there without any response. We know there are several steps in原创 2016-04-15 23:16:42 · 665 阅读 · 0 评论 -
APUE 20171211
read the code of Figure 11.11 using 2 mutexes. Still not get the mean.原创 2017-12-12 00:36:30 · 192 阅读 · 1 评论