发布时间:2016-12-14 09:15:43
有时候编译 kernel 时,想要看一些编译信息,可以改相应目录的 Makefile,用 ccflags-y。比如:diff --git a/arch/arm64/mm/Makefile b/arch/arm64/mm/Makefileindex 3ecb56c..71037bd 100644--- a/arch/arm64/mm/Makefile+++ b/arch/arm64/mm/Makefile@@ -3,3 +3,4 @@ obj-y &nb.........【阅读全文】
发布时间:2016-11-17 10:58:10
====== How to use 'dd' to benchmark your disk or CPU? =========== Storage benchmark (hard disk or SSD) =====//This part is written on 2010-11-29 to address sometimes incorrect usage of "dd" to measure disk write performance on a VPS by some visitors of the [[http://lowendbox.com/|lowendbox.com]] w.........【阅读全文】
发布时间:2016-11-09 15:49:58
我的 vps 是 CentOS 6.8,需要安装 python request 库,先得安装 pip。尝试用 yum install python-pip,结果不行。所以还是源码安装吧wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gztar zvxf 1.5.5.tar.gzcd pip-1.5.5/python setup.py installpip install requests.........【阅读全文】
发布时间:2016-09-18 14:49:06
关于 git log只输出一行,commit id 和 标题git log --pretty=onelinegit log --pretty 还有更强大的用法,自定义格式输出,git log --help 可以看到更多信息。查找某个作者所有的 commitgit log --pretty=oneline --author="Xxx".........【阅读全文】
发布时间:2016-04-06 19:26:39
Read the fxxking source code代码在 block/partition-generic.c点击(此处)折叠或打开ssize_t part_stat_show(struct device *dev, struct device_attribute *attr, char *buf){ &nb.........【阅读全文】