http://www.mail-archive.com/debian-kernel@lists.debian.org/msg48804.html



In file included from /home/waldeck/kvm-88/hw/scsi-generic.c:45:
/usr/include/scsi/scsi.h:145: error: expected specifier-qualifier-list before 
‘u8’
/usr/include/scsi/scsi.h: In function ‘scsi_varlen_cdb_length’:
/usr/include/scsi/scsi.h:156: error: ‘struct scsi_varlen_cdb_hdr’ has no member 
named ‘additional_cdb_length’
make: *** [scsi-generic.o] Fehler 1


--- /usr/include/scsi/scsi.h    2009-07-15 11:00:17.897425654 +0200
+++ /usr/include/scsi/scsi.h.patched    2009-07-15 11:00:08.305425688 +0200
@@ -142,10 +142,10 @@
 
 /* defined in T10 SCSI Primary Commands-2 (SPC2) */
 struct scsi_varlen_cdb_hdr {
-       u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
-       u8 control;
-       u8 misc[5];
-       u8 additional_cdb_length;         /* total cdb length - 8 */
+       __u8 opcode;        /* opcode always == VARIABLE_LENGTH_CMD */
+       __u8 control;
+       __u8 misc[5];
+       __u8 additional_cdb_length;         /* total cdb length - 8 */
        __be16 service_action;
        /* service specific data follows */
 };


-- 

 


richliu 發表在 痞客邦 留言(2) 人氣()

http://www.pengutronix.de/development/kernel/arm-benchmarks-20100702_en.html

 

Some quick tests of lmbench on a Sheevaplug:

mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_ops 
integer bit: 0.85 nanoseconds
integer add: 0.02 nanoseconds
integer mul: 0.42 nanoseconds
integer div: 147.77 nanoseconds
integer mod: 36.94 nanoseconds
int64 bit: 1.71 nanoseconds
int64 add: 0.04 nanoseconds
int64 mul: 0.92 nanoseconds
int64 div: 425.89 nanoseconds
int64 mod: 273.85 nanoseconds
float add: 36.25 nanoseconds
float mul: 30.32 nanoseconds
float div: 161.29 nanoseconds
double add: 51.21 nanoseconds
double mul: 46.31 nanoseconds
double div: 542.06 nanoseconds
float bogomflops: 325.59 nanoseconds
double bogomflops: 799.14 nanoseconds

mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ mbw 128
Long uses 4 bytes. Allocating 2*33554432 elements = 268435456 bytes of memory.
Using 262144 bytes as blocks for memcpy block copy test.
Getting down to business... Doing 10 runs per test.
0       Method: MEMCPY  Elapsed: 0.48203        MiB: 128.00000  Copy: 265.546 MiB/s
1       Method: MEMCPY  Elapsed: 0.48165        MiB: 128.00000  Copy: 265.751 MiB/s
2       Method: MEMCPY  Elapsed: 0.48163        MiB: 128.00000  Copy: 265.764 MiB/s
3       Method: MEMCPY  Elapsed: 0.49714        MiB: 128.00000  Copy: 257.473 MiB/s
4       Method: MEMCPY  Elapsed: 0.48168        MiB: 128.00000  Copy: 265.737 MiB/s
5       Method: MEMCPY  Elapsed: 0.48163        MiB: 128.00000  Copy: 265.764 MiB/s
6       Method: MEMCPY  Elapsed: 0.49695        MiB: 128.00000  Copy: 257.570 MiB/s
7       Method: MEMCPY  Elapsed: 0.48196        MiB: 128.00000  Copy: 265.579 MiB/s
8       Method: MEMCPY  Elapsed: 0.48164        MiB: 128.00000  Copy: 265.761 MiB/s
9       Method: MEMCPY  Elapsed: 0.49695        MiB: 128.00000  Copy: 257.570 MiB/s
AVG     Method: MEMCPY  Elapsed: 0.48633        MiB: 128.00000  Copy: 263.198 MiB/s
0       Method: DUMB    Elapsed: 0.29804        MiB: 128.00000  Copy: 429.475 MiB/s
1       Method: DUMB    Elapsed: 0.29807        MiB: 128.00000  Copy: 429.429 MiB/s
2       Method: DUMB    Elapsed: 0.29815        MiB: 128.00000  Copy: 429.310 MiB/s
3       Method: DUMB    Elapsed: 0.29800        MiB: 128.00000  Copy: 429.530 MiB/s
4       Method: DUMB    Elapsed: 0.31337        MiB: 128.00000  Copy: 408.458 MiB/s
5       Method: DUMB    Elapsed: 0.29805        MiB: 128.00000  Copy: 429.462 MiB/s
6       Method: DUMB    Elapsed: 0.29808        MiB: 128.00000  Copy: 429.411 MiB/s
7       Method: DUMB    Elapsed: 0.29801        MiB: 128.00000  Copy: 429.510 MiB/s
8       Method: DUMB    Elapsed: 0.29809        MiB: 128.00000  Copy: 429.403 MiB/s
9       Method: DUMB    Elapsed: 0.31339        MiB: 128.00000  Copy: 408.437 MiB/s
AVG     Method: DUMB    Elapsed: 0.30113        MiB: 128.00000  Copy: 425.072 MiB/s
0       Method: MCBLOCK Elapsed: 0.21906        MiB: 128.00000  Copy: 584.317 MiB/s
1       Method: MCBLOCK Elapsed: 0.21554        MiB: 128.00000  Copy: 593.852 MiB/s
2       Method: MCBLOCK Elapsed: 0.21577        MiB: 128.00000  Copy: 593.238 MiB/s
3       Method: MCBLOCK Elapsed: 0.21671        MiB: 128.00000  Copy: 590.646 MiB/s
4       Method: MCBLOCK Elapsed: 0.21479        MiB: 128.00000  Copy: 595.942 MiB/s
5       Method: MCBLOCK Elapsed: 0.23519        MiB: 128.00000  Copy: 544.232 MiB/s
6       Method: MCBLOCK Elapsed: 0.21705        MiB: 128.00000  Copy: 589.734 MiB/s
7       Method: MCBLOCK Elapsed: 0.59684        MiB: 128.00000  Copy: 214.464 MiB/s
8       Method: MCBLOCK Elapsed: 0.21699        MiB: 128.00000  Copy: 589.889 MiB/s
9       Method: MCBLOCK Elapsed: 0.21418        MiB: 128.00000  Copy: 597.642 MiB/s
AVG     Method: MCBLOCK Elapsed: 0.25621        MiB: 128.00000  Copy: 499.589 MiB/s

Couldn't get lat_ctx to work.

mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_syscall open
Simple open/close: 7.2754 microseconds
mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_syscall open /dev/shm/lmbench3.tar 
Simple open/close: 6.9399 microseconds

mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ ./lat_proc fork
Process fork+exit: 763.5714 microseconds

mcuelenaere@kot:/dev/shm/lmbench3/bin/armv5tel-linux-gnu$ cat /proc/cpuinfo 
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1192.75
Features        : swp half thumb fastmult edsp 
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Marvell SheevaPlug Reference Board
Revision        : 0000
Serial          : 0000000000000000


I'm not sure if I'm doing this right, but it looks like the Sheevaplug beats all ARM chips (except
on FP) on the tests done at [1]. Looks like these tests heavily depend on the clock frequency.


richliu 發表在 痞客邦 留言(0) 人氣()

Performance and compatibility issues with Shared Folders in Parallels Desktop build 9344

Parallels 內裝的是 Windows XP, 裝 Office 2010

 

從 Office 2003 移 .pst 檔給 2010 用的時候. 

會出現 Office 存取錯誤, 或是像是如下的錯誤

MS Office 2010 0x800703ee error 

richliu 發表在 痞客邦 留言(0) 人氣()

這樣的故事應該天天都在上演


主管: "你去移除 Max Payne 2 的保護"
員工: "這個 source code 要去那邊下載呀"

richliu 發表在 痞客邦 留言(2) 人氣()

碰到這樣的 Message

> the location of the previous definition
> fio.c:150:35: error: macro "offsetof" requires 2 arguments, but only 1 given
> fio.c: In function 'setptr':
> fio.c:150: error: 'offsetof' undeclared (first use in this function)

richliu 發表在 痞客邦 留言(1) 人氣()

很舊的 Gentoo 系統要升級是一場災難, 不過還是可以有方法解決

http://blog.jolexa.net/2009/03/25/gentoo-tips-to-upgrade-your-really-old-installation/

不過如果有其他台比較新的, 可以先在其他台編好需要的套件

$ emerge -B gcc glibc portage =python-2.6.4 xz-utils

再丟到 舊機器上面,

richliu 發表在 痞客邦 留言(0) 人氣()

如果在 Linux kernel 內, 取用某一個 struct 時, 出現這個錯誤訊息

error: dereferencing pointer to incomplete type

source sample 如下

if ( bdev->bd_disk )

    printk("%s\n",bdev->bd_disk->disk_name);

richliu 發表在 痞客邦 留言(0) 人氣()

用 VirtualBox 3.0.x 版, 如果跑 NetBSD 碰到系統很慢的問題, 記得關掉 ACPI 就可以正常執行了.


richliu 發表在 痞客邦 留言(0) 人氣()

所以 Plurk 不穩要怪米國的 ISP .....

$ ping plurk.com
PING plurk.com (216.86.150.58) 56(84) bytes of data.
From ip221.216-86-152.static.steadfast.net (216.86.152.221) icmp_seq=1 Time to live exceeded

$ traceroute 216.86.152.221

richliu 發表在 痞客邦 留言(1) 人氣()

看起來似乎是 ARM Platform 並未實作 poll function, 所以 udevd.c 編不起來.

這邊有 patch 可以暫時解這個問題

https://dev.openwrt.org/ticket/5766

 

Patch 如下....

richliu 發表在 痞客邦 留言(0) 人氣()

http://lwn.net/Articles/293730/

用 layman -a php-4

安裝完 php4 之後, 記得到別台 php4 機器 copy /etc/apache2/module.d/70_mod_php4.conf 過來.

以下是 70_mod_php4.conf 的內容.

richliu 發表在 痞客邦 留言(0) 人氣()

  • Jun 12 Fri 2009 14:31
  • 轉歸

這一篇和我中醫的治療原則相似.

http://www.zysj.com.cn/lilunshuji/jichulilun/44-8-7.html

第七節 疾病的轉歸

一、轉歸的概念

疾病有一個發生發展的過程,大多數疾病發生發展到一定階段後終將結束,這就是疾病的轉歸。疾病的轉歸,是指疾病發展的最後階段,即疾病的結局。一般而言,疾病的轉歸,可分為痊癒、死亡、纏綿、後遺等。

正 勝邪退,疾病向愈:正勝邪退是在邪正消長盛衰發展過程中,疾病向好轉和痊癒方面轉歸的一種結局,也是在許多疾病中最常見的一種轉歸。由於患者的正氣比較充 盛,抗禦邪氣的能力較強,或因及時地得到正確的治療,邪氣難以進一步發展,進而使病邪對機體的作用減輕或消失,人體的臟腑、經絡等組織的病理性損害逐漸得 到修復,精、氣、血、津液等的耗傷也逐漸得到恢復,機體的陰陽在新的基礎上獲得了新的相對平衡,疾病即告痊癒。例如,由六淫所致的外感疾病,邪氣從皮毛或 口鼻侵人人體。若機體正氣不虛,抗禦病邪的能力較強,則不僅能延緩病情的進一步發展,使病變侷限在肌表和經絡,而且可在機體正氣抗禦病邪的作用下,驅邪外 出,一經發汗解表,則邪去而營衛和調,疾病痊癒。

邪勝正衰,疾病惡化:邪勝正衰,是在邪正消長盛衰的發展過程中,疾病向惡化甚至死亡方面轉 歸的一種結局。由於機體的正氣虛弱,或由於邪氣熾盛,機體抗禦病邪的能力日趨低下,邪氣的致病作用進一步發展,機體受到的病理性損害日趨嚴重,則病情因而 趨向惡化:若正氣衰竭,邪氣獨盛,氣血、臟腑、經絡等生理功能衰憊,陰陽離決,則機體的生命活動亦告終止而死亡。例如,在外感疾病過程中,「亡陰」、「亡 陽」等證候的出現,即是正不敵邪,邪勝正衰的典型表現。

richliu 發表在 痞客邦 留言(0) 人氣()

這真是一部怪咖電影, 看前面會覺得很無聊, 但是看完之後發現惡趣味很多

參考:

《Burn After Reading》布萊德彼特之即刻毀滅

柯恩兄弟黑色戲謔之極致:即刻毀滅 Burn after Reading


richliu 發表在 痞客邦 留言(0) 人氣()

2007年就收到的網路轉寄信, 經過 2008 裁員潮之後, 更能感同身受


近一兩年,年輕學子畢業後追逐高科技電子公司的風潮,歷久不衰,即便許多號稱高科技電子
的公司已進入微利時代,高股價、高配股已成記憶,年輕人仍非高科技電子公司不可的求職心

richliu 發表在 痞客邦 留言(0) 人氣()


之前就講過了, 憋尿和憋大便可以保留元氣, 如果一直都常常去上洗手間, 元氣一直流失, 那以後沒有元氣時, 大小號就憋不住了
人死之前也是憋不住的.

richliu 發表在 痞客邦 留言(1) 人氣()