/*********************************************************************** * lmbench andlmbench Transplant Test * said Ming: * Want to transplant lmbench performance test software to test the performance of Android system, but found that * Android Linux shell command is too few, always error, the next time you need to port BusyBox, and first * Create a soft link. * 2016-8-3 Shenzhen Nanshan Ping Shan village Zengjianfeng *********************************************************** ***********/First, download andlmbench https://Github.com/shizkr/andlmbenchsecond, compile:./remmm.sh/home/zengjf/cmd/andlmbench-Master Three, run:1. See how it Works (andlmbench-master/scripts/android.mk): Ifeq ($ (build_lmbench),true) Local_path:= $ (Call my-dir) include $ (clear_vars) Local_module:=runlmbench local_src_files:=$ (local_module) Local_module_class:=Executables Local_module_tags:=Eng Local_module_path:=$ (target_out_executables) include $ (build_prebuilt)2It can be seen that the final executable program is runlmbench four, error:1. Error1:1. Symptom: [email protected]:/# Runlmbench/system/bin/runlmbench[393]: Which:not found Error:dd doesn't exist to run Lmbench tool!!! 2. Reason (cat runlmbench): Verifytools () { forToolinch$1 Dovalid=$ (which $tool | grep""-c)if["$valid"!="1" ]; Then Echo"ERROR: $tool doesn ' t exist to run Lmbench tool!!!"Exit1fi Done}3The test which command does not exist: [email protected]:/# which DD/system/bin/Sh:which:not found [email protected]:/ # 4The Test BusyBox which command is present: [email protected]:/# BusyBox which BusyBox v1.15.3( .- One- - -: -: -CST) multi-Call binary Usage:which [COMMAND] ... Locate a COMMAND [email protected]:/ # 2. Error2:1. Symptom: [email protected]:/# runlmbench error:sed doesn't exist to run Lmbench tool!!! 2. Test sed command: [email protected]:/# sed/system/bin/Sh:sed:not found3reason: There is no complete Linux shell command in this set of Android systems, and it may be possible to consider using BusyBox to regenerate soft links.
Lmbench andlmbench Transplant Test