Niklaus Giger wrote:
>> When using this variant, I get the following messages:
>>> /bin/xeno-test: /bin/xeno-test: 177: zgrep: not found
>> What about zcat | grep instead? Moreover, I failed to find a zgrep bb
>> applet. Did you copy that stuff on your box?
> Sorry. As I had segmentation faults, my run did not get so far/or I missed 
> this error. Running it manually I confirmed your bug and the proposed 
> solution works for me, too. Integrated in the new version (attached) of the 
> patch.

Still broken:

> boxinfo() { # static info, show once
>     loudly `dirname $0`/xeno-config --verbose
>     loudly `dirname $0`/xeno-info
> 
>     loudly cat /proc/cpuinfo    # bogomips changes under CPU_FREQ
> 
>     # how much of the config do we want ?
>     local cmd="zcat | grep -E '$whatconf'"
>     [ "$verbose" = 1 ] && cmd=cat
> 
>     if [ -f /proc/config.gz ]; then     # get the config
>         loudly $cmd /proc/config.gz

Resolves to "zcat | grep -E '...' /proc/config.gz" or to "cat
/proc/config.gz". Both doesn't work. I would suggest this:

    local filter="| grep -E '$whatconf'"
    [ "$verbose" = 1 ] && filter=

    if [ -f /proc/config.gz ]; then     # get the config
        loudly zcat /proc/config.gz $filter

>     elif [ -f /lib/modules/`uname -r`/build/.config ]; then
>         loudly $cmd /lib/modules/`uname -r`/build/.config

And here we need

    loudly cat /lib/modules/`uname -r`/build/.config $filter

>     fi
> 

There is another occurrence of "zcat | grep" which needs fixing.

> 
>>> /bin/xeno-test: /bin/xeno-test: 264: getopts: not found
>> getopts is off by default in bb. Is this essential for xeno-test? Then
>> you should state this requirement somewhere.
> I checked out BusyBox 1.13, run "make defconfig", changed the cross-compiler 
> and install path. But I verified that a "make defconfig" on the 1.00 version 
> had "# CONFIG_ASH_GETOPTS is not set".
> 
> Could you try the attached patch using busybox with "CONFIG_ASH_GETOPTS=y"? 

Did so, and also awk need to be switched on. What about testing for
those features when bb was detected? Anyway, the latency tests work now
(in my qemu box). But I do not find the workload (dd?) in the process list:

[EMAIL PROTECTED] :/root# ps
  PID  Uid     VmSize Stat Command
    1 root        664 S   init
    2 root            SWN [ksoftirqd/0]
    3 root            SW  [watchdog/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kthread]
    8 root            SW< [kblockd/0]
   41 root            SW< [gatekeeper/0]
   76 root            SW  [pdflush]
   77 root            SW  [pdflush]
   79 root            SW< [aio/0]
   78 root            SW  [kswapd0]
  663 root            SW< [kseriod]
  700 root            SW< [kpsmoused]
  787 root        212 S   dhcpcd eth0 -t 5 -h LIRE_home -I LIRE_home
  844 root       1020 S   /usr/sbin/sshd -f /etc/ssh/sshd_config
  874 root        648 S   /sbin/getty 38400 tty1
  877 root        644 S   /sbin/getty 38400 tty2
  880 root        648 S   /sbin/getty 38400 tty3
  883 root        640 S   /sbin/getty 38400 tty4
  886 root        644 S   /sbin/getty 38400 tty5
  889 root        648 S   /sbin/getty 38400 tty6
  890 root        644 S   /sbin/getty 38400 tty7
  891 root        636 S   /sbin/getty 38400 tty8
  898 root       2004 S   sshd: [EMAIL PROTECTED]/0
  902 root        820 S   -sh
  905 root        708 S   /bin/sh /bin/xeno-test
 1182 root        436 S   /bin/sh /bin/xeno-test
 1296 root       2004 S   sshd: [EMAIL PROTECTED]/1
 1300 root        884 S   -sh
 1321 root        272 S   /bin/sh /bin/xeno-test
 1322 root        632 S   /bin/sh ./run -- -q -s -T 120 -t1
 1323 root        680 S   /bin/sh //bin/xeno-load -- -q -s -T 120 -t1
 1364 root        436 S   /bin/sh //bin/xeno-load -- -q -s -T 120 -t1
 1426 root       1732 S   ./latency -q -s -T 120 -t1
 1430 root        744 R   ps

Instead I have this in the log:

[...]
Sat May 27 16:29:26 UTC 2006
running: cat /proc/ipipe/version
1.3-04

Sat May 27 16:29:26 UTC 2006
running: generate_loads 1
dummy  reaper for 1039
dd workload started, pids 1048
killing workload pids 1048
killall: dd: no process killed

Sat May 27 16:29:27 UTC 2006
running: cat /proc/interrupts
[...]

Or do I have to invoke xeno-test with some parameter (I did not pass any)?

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to