Hi!

On Wed, Oct 22, 2008 at 10:21:55AM +0200, Minh Ha Duong wrote:
> Le mercredi 22 octobre 2008, Alexander Mueller a écrit :
> > Did anybody try to get bootchart to run on the OM?
> 
> Alessandro did it and posted the chart on his user page in the wiki. Did you 
> notice the Wiki search engine has been upgraded recently ?
> http://wiki.openmoko.org/wiki/User:Alessandro

I've noticed that Alessandro complains there are no disk (flash) usage
statistics in bootcharts.  I've cooked up an (untested) patch to fix this for
both mtd and mmcblk devices:

Index: src/org/bootchart/parser/linux/ProcDiskStatParser.java
===================================================================
--- src/org/bootchart/parser/linux/ProcDiskStatParser.java      (revision 434)
+++ src/org/bootchart/parser/linux/ProcDiskStatParser.java      (working copy)
@@ -44,7 +44,7 @@
 public class ProcDiskStatParser {
        private static final Logger log = 
Logger.getLogger(ProcDiskStatParser.class.getName());
 
-       private static final String DISK_REGEX = "hd.|sd.";
+       private static final String DISK_REGEX = "hd.|sd.|mtdblock.|mmcblk.";
        
        /** DiskStatSample encapsulates a /proc/diskstat sample. */
        private static class DiskStatSample {

-- 
- Harald Welte <[EMAIL PROTECTED]>                      http://openmoko.org/
============================================================================
Software for the world's first truly open Free Software mobile phone

_______________________________________________
devel mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to