1*288bf522SAndroid Build Coastguard Worker# bootio # 2*288bf522SAndroid Build Coastguard Worker 3*288bf522SAndroid Build Coastguard WorkerThe bootio tool records I/O for processes during boot. 4*288bf522SAndroid Build Coastguard WorkerTo use bootio kernel must be compiled with this flags: 5*288bf522SAndroid Build Coastguard Worker 6*288bf522SAndroid Build Coastguard Worker CONFIG_TASKSTATS=y 7*288bf522SAndroid Build Coastguard Worker CONFIG_TASK_DELAY_ACCT=y 8*288bf522SAndroid Build Coastguard Worker CONFIG_TASK_XACCT=y 9*288bf522SAndroid Build Coastguard Worker CONFIG_TASK_IO_ACCOUNTING=y 10*288bf522SAndroid Build Coastguard Worker 11*288bf522SAndroid Build Coastguard WorkerTo use bootio make sure it's included in product config for the board. 12*288bf522SAndroid Build Coastguard WorkerCreate file /data/misc/bootio/start with a command like the following: 13*288bf522SAndroid Build Coastguard Worker 14*288bf522SAndroid Build Coastguard Worker adb shell 'echo "$TIMEOUT $SAMPLES" > /data/misc/bootio/start' 15*288bf522SAndroid Build Coastguard Worker 16*288bf522SAndroid Build Coastguard WorkerWhere the value of $TIMEOUT corresponds to the desired bootio period in 17*288bf522SAndroid Build Coastguard Workerseconds and $SAMPLES corresponds to the desired number of samples. 18*288bf522SAndroid Build Coastguard Worker 19*288bf522SAndroid Build Coastguard WorkerNote: /data/misc/bootio/start is not deleted automatically, so don't 20*288bf522SAndroid Build Coastguard Workerforget to delete it when you're done collecting data. 21*288bf522SAndroid Build Coastguard Worker 22*288bf522SAndroid Build Coastguard WorkerTo see collected logs run: 23*288bf522SAndroid Build Coastguard Worker 24*288bf522SAndroid Build Coastguard Worker adb shell bootio -p 25