Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r4745 - developers/werner/wlan-perf ([EMAIL PROTECTED])
   2. r4746 - developers/werner/wlan-spi/patches-tracking
      ([EMAIL PROTECTED])
   3. r4747 - trunk/src/host/opkg-utils ([EMAIL PROTECTED])
   4. r4748 - developers/werner/wlan-perf ([EMAIL PROTECTED])
   5. r4749 - trunk/src/host/qemu-neo1973/openmoko
      ([EMAIL PROTECTED])
   6. r4750 -
      trunk/src/target/OM-2007.2/applications/openmoko-mediaplayer2/src
      ([EMAIL PROTECTED])
   7. Openmoko's OpenEmbedded repository. This is used to build the
      Openmoko distribution: Changes to 'org.openmoko.dev'
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: werner
Date: 2008-11-03 02:50:44 +0100 (Mon, 03 Nov 2008)
New Revision: 4745

Modified:
   developers/werner/wlan-perf/report
Log:
- don't pass around bytes and time separate, use the rate instead
- print "*1000B" instead of ambiguous "kB"
- compute standard deviation in new function std_dev



Modified: developers/werner/wlan-perf/report
===================================================================
--- developers/werner/wlan-perf/report  2008-11-03 01:48:41 UTC (rev 4744)
+++ developers/werner/wlan-perf/report  2008-11-03 01:50:44 UTC (rev 4745)
@@ -3,13 +3,12 @@
 
 sub extract_ttcp()
 {
-    local ($name, *bytes, *time, *csw) = @_;
+    local ($name, *rate, *csw) = @_;
 
     open(F, $name) || die "$name: $!";
     while (<F>) {
        if (/ (\d+) bytes in (\S+) real seconds/) {
-           push(@bytes, $1);
-           push(@time, $2);
+           push(@rate, $1/$2);
        }
        if (/ (\d+)\+(\d+)csw/) {
            push(@csw, $1+$2);
@@ -29,41 +28,48 @@
 
 sub ttcp_set()
 {
-    local (*bytes, *time, *csw, $i) = @_;
+    local (*rate, *csw, $i) = @_;
 
-    $bytes += $bytes[$i];
-    $time += $time[$i];
+    $rate += $rate[$i];
     $csw += $csw[$i];
-    return &ttcp_format($bytes[$i]/$time[$i], $csw[$i]);
+    return &ttcp_format($rate[$i], $csw[$i]);
 }
 
 
+sub std_dev()
+{
+    local ($sq_sum, $avg, $n) = @_;
+
+    return sqrt($sq_sum/$n-$avg*$avg);
+}
+
+
 sub report_ttcp()
 {
     local ($label_tx, $label_rx, $tx, $rx) = @_;
-    local (@tx_bytes, @tx_time, @tx_csw);
-    local (@rx_bytes, @rx_time, @rx_csw);
-    local ($tx_bytes, $tx_time, $tx_csw);
-    local ($rx_bytes, $rx_time, $rx_csw);
+    local (@tx_rate, @tx_csw);
+    local (@rx_rate, @rx_csw);
+    local ($tx_rate, $tx_csw);
+    local ($rx_rate, $rx_csw);
     local ($gap) = " " x 4;
 
     print "---- ",
        $label_tx, " ", "-" x (15-length $label_tx), $gap,
        $label_rx, " ", "-" x (15-length $label_rx), "\n";
     print " " x 5,
-      sprintf("%-8s %-7s", "kB/s", "ctx_sw"), $gap,
-      sprintf("%-8s %-7s", "kB/s", "ctx_sw"), "\n";
+      sprintf("%-8s %-7s", "*1000B/s", "ctx_sw"), $gap,
+      sprintf("%-8s %-7s", "*1000B/s", "ctx_sw"), "\n";
 
-    &extract_ttcp($tx, *tx_bytes, *tx_time, *tx_csw);
-    &extract_ttcp($rx, *rx_bytes, *rx_time, *rx_csw);
-    for ($i = 0; $i != @tx_bytes; $i++) {
+    &extract_ttcp($tx, *tx_rate, *tx_csw);
+    &extract_ttcp($rx, *rx_rate, *rx_csw);
+    for ($i = 0; $i != @tx_rate; $i++) {
        print sprintf("%3d: ", $i+1),
-         &ttcp_set(*tx_bytes, *tx_time, *tx_csw, $i), $gap,
-         &ttcp_set(*rx_bytes, *rx_time, *rx_csw, $i), "\n";
+         &ttcp_set(*tx_rate, *tx_csw, $i), $gap,
+         &ttcp_set(*rx_rate, *rx_csw, $i), "\n";
     }
     print "AVG: ",
-      &ttcp_format($tx_bytes/$tx_time, $tx_csw/@tx_bytes), $gap,
-      &ttcp_format($rx_bytes/$rx_time, $rx_csw/@tx_bytes), "\n";
+      &ttcp_format($tx_rate/@tx_rate, $tx_csw/@tx_rate), $gap,
+      &ttcp_format($rx_rate/@tx_rate, $rx_csw/@tx_rate), "\n";
     print "\n";
 }
 
@@ -105,7 +111,7 @@
       sprintf("%7.2f", $min), "/",
       sprintf("%7.2f", $avg), "/",
       sprintf("%7.2f", $max), "  ",
-      sprintf("%7.2f", sqrt($sq_sum/@time-$avg*$avg)), " ms\n";
+      sprintf("%7.2f", &std_dev($sq_sum, $avg, $#time+1)), " ms\n";
 }
 
 




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-11-03 03:07:31 +0100 (Mon, 03 Nov 2008)
New Revision: 4746

Modified:
   developers/werner/wlan-spi/patches-tracking/ar6k-without-sdio.patch
   developers/werner/wlan-spi/patches-tracking/series
Log:
Final cosmetics.

- series: also remove any pre-existing target directory in the non-git 
  instructions
- ar6k-without-sdio.patch: make AR6k config message look less anemic



Modified: developers/werner/wlan-spi/patches-tracking/ar6k-without-sdio.patch
===================================================================
--- developers/werner/wlan-spi/patches-tracking/ar6k-without-sdio.patch 
2008-11-03 01:50:44 UTC (rev 4745)
+++ developers/werner/wlan-spi/patches-tracking/ar6k-without-sdio.patch 
2008-11-03 02:07:31 UTC (rev 4746)
@@ -42,7 +42,7 @@
 +++ ktrack/drivers/ar6000/Kconfig      2008-11-02 04:29:20.000000000 -0200
 @@ -0,0 +1,7 @@
 +config AR6000_WLAN
-+        tristate "ar6000 wireless networking over sdio"
++        tristate "AR6000 wireless networking over SDIO"
 +      depends on MMC
 +        select WIRELESS_EXT
 +        default m

Modified: developers/werner/wlan-spi/patches-tracking/series
===================================================================
--- developers/werner/wlan-spi/patches-tracking/series  2008-11-03 01:50:44 UTC 
(rev 4745)
+++ developers/werner/wlan-spi/patches-tracking/series  2008-11-03 02:07:31 UTC 
(rev 4746)
@@ -3,6 +3,7 @@
 # the patches, you need to remove the Atheros SDIO stack as follows:
 #
 # cd drivers
+# rm -rf ar6000
 # mv sdio/function/wlan/ar6000 .
 # rm -rf sdio ../include/linux/sdio
 #




--- End Message ---
--- Begin Message ---
Author: tick
Date: 2008-11-03 04:59:59 +0100 (Mon, 03 Nov 2008)
New Revision: 4747

Modified:
   trunk/src/host/opkg-utils/Makefile
Log:
[opkg-utils] fix install fail problem 
 Thanks for khorben's patch :-)
 
https://docs.openmoko.org/trac/attachment/ticket/2072/patch-opkg-utils_Makefile_install_path.diff



Modified: trunk/src/host/opkg-utils/Makefile
===================================================================
--- trunk/src/host/opkg-utils/Makefile  2008-11-03 02:07:31 UTC (rev 4746)
+++ trunk/src/host/opkg-utils/Makefile  2008-11-03 03:59:59 UTC (rev 4747)
@@ -4,7 +4,7 @@
 
 DESTDIR=
 PREFIX=/usr/local
-bindir=${prefix}/bin
+bindir=$(PREFIX)/bin
 
 all: opkg-compare-versions
 
@@ -13,7 +13,7 @@
 
 install: opkg-compare-versions
        install -d $(DESTDIR)$(bindir)
-       install -m 744 $(UTILS) $(DESTDIR)$(bindir)
+       install -m 755 $(UTILS) $(DESTDIR)$(bindir)
 
 clean:
        rm -rf opkg-compare-versions




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2008-11-03 07:16:07 +0100 (Mon, 03 Nov 2008)
New Revision: 4748

Modified:
   developers/werner/wlan-perf/report
Log:
Make the reports more useful.

- report: show also the CPU load of ttcp runs
- report: print the standard deviation of all measurements
- report: if given an argument, chdir to it before looking for files



Modified: developers/werner/wlan-perf/report
===================================================================
--- developers/werner/wlan-perf/report  2008-11-03 03:59:59 UTC (rev 4747)
+++ developers/werner/wlan-perf/report  2008-11-03 06:16:07 UTC (rev 4748)
@@ -3,7 +3,7 @@
 
 sub extract_ttcp()
 {
-    local ($name, *rate, *csw) = @_;
+    local ($name, *rate, *csw, *cpu) = @_;
 
     open(F, $name) || die "$name: $!";
     while (<F>) {
@@ -13,6 +13,9 @@
        if (/ (\d+)\+(\d+)csw/) {
            push(@csw, $1+$2);
        }
+       if (/real (\d+)%/) {
+           push(@cpu, $1);
+       }
     }
     close F;
 }
@@ -20,19 +23,32 @@
 
 sub ttcp_format()
 {
-    local ($rate, $csw) = @_;
+    local ($rate, $csw, $cpu) = @_;
 
-    return sprintf("%8.2f %7d", $rate/1000, $csw);
+    return sprintf("%8.2f %7d %3d%%", $rate/1000, $csw, $cpu);
 }
 
 
+#
+# Dirty trick: we use
+# @var for the set of values extracted from the file,
+# $var for the sum collected for calculating the average, and
+# $var{""} to hold the sum of squares for the standard deviation.
+#
+
+
 sub ttcp_set()
 {
-    local (*rate, *csw, $i) = @_;
+    local (*rate, *csw, *cpu, $i) = @_;
 
+    
     $rate += $rate[$i];
     $csw += $csw[$i];
-    return &ttcp_format($rate[$i], $csw[$i]);
+    $cpu += $cpu[$i];
+    $rate{""} += $rate[$i]*$rate[$i];
+    $csw{""} += $csw[$i]*$csw[$i];
+    $cpu{""} += $cpu[$i]*$cpu[$i];
+    return &ttcp_format($rate[$i], $csw[$i], $cpu[$i]);
 }
 
 
@@ -44,32 +60,49 @@
 }
 
 
+sub ttcp_std_dev()
+{
+    local (*var, $n) = @_;
+
+    return &std_dev($var{""}, $var/$n, $n);
+}
+
+
 sub report_ttcp()
 {
     local ($label_tx, $label_rx, $tx, $rx) = @_;
-    local (@tx_rate, @tx_csw);
-    local (@rx_rate, @rx_csw);
-    local ($tx_rate, $tx_csw);
-    local ($rx_rate, $rx_csw);
+    local (@tx_rate, @tx_csw, @tx_cpu);
+    local (@rx_rate, @rx_csw, @rx_cpu);
+    local (%tx_rate, %tx_csw, %tx_cpu);
+    local (%rx_rate, %rx_csw, %rx_cpu);
+    local ($tx_rate, $tx_csw, $tx_cpu);
+    local ($rx_rate, $rx_csw, $rx_cpu);
     local ($gap) = " " x 4;
+    local ($n);
 
     print "---- ",
        $label_tx, " ", "-" x (15-length $label_tx), $gap,
        $label_rx, " ", "-" x (15-length $label_rx), "\n";
     print " " x 5,
-      sprintf("%-8s %-7s", "*1000B/s", "ctx_sw"), $gap,
-      sprintf("%-8s %-7s", "*1000B/s", "ctx_sw"), "\n";
+      sprintf("%-8s %-7s CPU ", "*1000B/s", "ctx_sw"), $gap,
+      sprintf("%-8s %-7s CPU ", "*1000B/s", "ctx_sw"), "\n";
 
-    &extract_ttcp($tx, *tx_rate, *tx_csw);
-    &extract_ttcp($rx, *rx_rate, *rx_csw);
-    for ($i = 0; $i != @tx_rate; $i++) {
+    &extract_ttcp($tx, *tx_rate, *tx_csw, *tx_cpu);
+    &extract_ttcp($rx, *rx_rate, *rx_csw, *rx_cpu);
+    $n = @tx_rate;
+    for ($i = 0; $i != $n; $i++) {
        print sprintf("%3d: ", $i+1),
-         &ttcp_set(*tx_rate, *tx_csw, $i), $gap,
-         &ttcp_set(*rx_rate, *rx_csw, $i), "\n";
+         &ttcp_set(*tx_rate, *tx_csw, *tx_cpu, $i), $gap,
+         &ttcp_set(*rx_rate, *rx_csw, *rx_cpu, $i), "\n";
     }
     print "AVG: ",
-      &ttcp_format($tx_rate/@tx_rate, $tx_csw/@tx_rate), $gap,
-      &ttcp_format($rx_rate/@tx_rate, $rx_csw/@tx_rate), "\n";
+      &ttcp_format($tx_rate/$n, $tx_csw/$n, $tx_cpu/$n), $gap,
+      &ttcp_format($rx_rate/$n, $rx_csw/$n, $rx_cpu/$n), "\n";
+    print "SDV: ",
+      &ttcp_format(&ttcp_std_dev(*tx_rate, $n),
+      &ttcp_std_dev(*tx_csw, $n), &ttcp_std_dev(*tx_cpu, $n)), $gap,
+      &ttcp_format(&ttcp_std_dev(*rx_rate, $n),
+      &ttcp_std_dev(*rx_csw, $n), &ttcp_std_dev(*rx_cpu, $n)), "\n";
     print "\n";
 }
 
@@ -115,6 +148,10 @@
 }
 
 
+if (@ARGV) {
+    chdir($ARGV[0]) || die "$ARGV[0]: $!";
+}
+
 &report_ttcp("host =>", "=> neo", "_rx_host", "_rx_neo");
 &report_ttcp("neo =>", "=> host", "_tx_neo", "_tx_host");
 &report_ping("host => neo", "_ping_rx");




--- End Message ---
--- Begin Message ---
Author: john_lee
Date: 2008-11-03 08:07:00 +0100 (Mon, 03 Nov 2008)
New Revision: 4749

Modified:
   trunk/src/host/qemu-neo1973/openmoko/env
Log:
Update URLs.  buildhost is not available anymore.


Modified: trunk/src/host/qemu-neo1973/openmoko/env
===================================================================
--- trunk/src/host/qemu-neo1973/openmoko/env    2008-11-03 06:16:07 UTC (rev 
4748)
+++ trunk/src/host/qemu-neo1973/openmoko/env    2008-11-03 07:07:00 UTC (rev 
4749)
@@ -23,10 +23,10 @@
 splash_size=0x5000
 
 # We don't want the "-latest" symlinks to match
-kernel_wildcard="uImage-2.6.*-om-gta01.bin"
-rootfs_wildcard="Open?oko-openmoko-*image*-om-gta01.rootfs.jffs2"
-uboot_wildcard="u-boot-gta01bv4-1*.bin"
+kernel_wildcard="testing-om-gta01-*.uImage.bin"
+rootfs_wildcard="testing-om-gta01-*.rootfs.jffs2"
+uboot_wildcard="gta01bv4-u-boot.bin"
 
-download_dir="http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/";
+download_dir="http://downloads.openmoko.org/daily/";
 dev_download_dir="$download_dir"
 backup_download_dir="http://buildhost.automated.it/OM2007.2/";




--- End Message ---
--- Begin Message ---
Author: john_lee
Date: 2008-11-03 09:27:03 +0100 (Mon, 03 Nov 2008)
New Revision: 4750

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-mediaplayer2/src/playback.c
Log:
Use alsasink instead of pulseaudio, for #1614, #1831.  Patch written
by hedora.


Modified: 
trunk/src/target/OM-2007.2/applications/openmoko-mediaplayer2/src/playback.c
===================================================================
--- 
trunk/src/target/OM-2007.2/applications/openmoko-mediaplayer2/src/playback.c    
    2008-11-03 07:07:00 UTC (rev 4749)
+++ 
trunk/src/target/OM-2007.2/applications/openmoko-mediaplayer2/src/playback.c    
    2008-11-03 08:27:03 UTC (rev 4750)
@@ -112,12 +112,12 @@
                G_SIGNAL_RUN_FIRST, 0, 0, NULL, g_cclosure_marshal_VOID__STRING,
                G_TYPE_NONE, 1, G_TYPE_STRING);
 
-       // Create audio sink for PulseAudio
-       omp_gst_audiosink = gst_element_factory_make("pulsesink", NULL);
+       // Create audio sink for ALSA
+       omp_gst_audiosink = gst_element_factory_make("alsasink", NULL);
 
        if (!omp_gst_audiosink)
        {
-               error_dialog_modal(_("Error: gstreamer failed to create the 
PulseAudio sink.\nPlease make sure gstreamer and its modules are properly 
installed (esp. gst-plugin-pulse)."));
+               error_dialog_modal(_("Error: gstreamer failed to create the 
ALSA sink.\nPlease make sure gstreamer and its modules are properly installed 
(esp. gst-plugin-alsa)."));
 
                return FALSE;
        }




--- End Message ---
--- Begin Message ---
 conf/distro/include/sane-srcrevs.inc            |    2 +-
 packages/openmoko2/openmoko-mediaplayer2_svn.bb |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b25c3e2967260bf502db234a009e7c1731251e4e
Author: John Lee <[EMAIL PROTECTED]>
Date:   Mon Nov 3 16:33:05 2008 +0800

    openmoko-mediaplayer2: remove pulseaudio, use alsa instead.




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to