三月

March 1st, 2010

注定了是忙碌的一月。

分身乏术,如果能暂时变成Edward Cullen,不用睡觉,还可以瞬间移动,该有多好。

如果还能吃肉就更好了。。。

saphires 职场

开奖了

February 28th, 2010

see http://www.chinapost.com.cn/

今年中奖的是,mail同学! cong! !!

saphires 好友

oprofile on Linux guest under VMware

February 26th, 2010

oprofile一直报错,不出结果。百思不得其解。。。
# opreport
Overflow stats not available
error: no sample files found: profile specification too strict ?

过了几个月,突然开了窍,想起这几个机器是VM guest under vmware,放狗一搜,有了结果。。。
official says: OProfile can't work with VMware when using performance counter interface. A workaround is to use RTC mode (2.4 kernel) or timer interrupt mode (2.6 kernel) 就是没讲怎么设置timer interrupt mode…

手册提了这一点,没费太多力气。

简单的说,就是:
# opcontrol --deinit
# modprobe oprofile timer=1
# echo "options oprofile timer=1" >> /etc/modprobe.conf

然后就可以了
# opcontrol --start
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.
# opcontrol --dump
# opreport
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
TIMER:0|
samples| %|
------------------
171 93.4426 vmlinux
7 3.8251 libc-2.11.so
3 1.6393 pcnet32
1 0.5464 bash
1 0.5464 oprofile

saphires 流水帐 ,

庆祝yueyue脱离18m的魔掌

February 25th, 2010

map2

策划以久的逃离18m终于实现,又当新员工了。

就是没逃多远,不到五百米吧。

老板变领导,再也不用英文写mail,也不用再说那蹩脚的英文了。

来顶或踩吧!

saphires 生活

热烈庆祝ddzhou.com开张

February 21st, 2010

经过紧锣密布的筹备,DD的新blog开张了。

大家都过去一下。

saphires 好友

买一送二

February 11th, 2010

去年买了本书,《软件调试的艺术》。一般情况下偶都有标注的习惯,看到错误的地方就把他们标注下来,然后把页码记在扉页上。

这本书内容很不错,算是一本不错的gdb的turorial。难得的是这本中文版错误不是一般多,偶翻完过后发现扉页上已经写了十来处错误,包括错别字和翻译准确性,程序代码拼写等。。。于是放狗找到出版社网站,给这本书留了个勘误。

几个月过去了,也没什么回音。看来这网上的东西还真是不靠谱。

前天从HK回来收到封邮件,说此书要再版,收到偶勘误了,会检查并收录。为表示感谢送偶再版的书,以及另外一本相关主题的新书《软件调试实战》。。。

为奖励本博的常访客,谁要再版那本的,我送了!

saphires 流水帐