From: Jan Kiszka <jan.kiszka@domain.hid>
To: niklaus.giger@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Porting xeno-{info|load|test} to a busybox system
Date: Sat, 27 May 2006 18:42:57 +0200 [thread overview]
Message-ID: <44788191.2000405@domain.hid> (raw)
In-Reply-To: <200605261852.45980.niklaus.giger@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 4437 bytes --]
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:
root@domain.hid :/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: root@domain.hid
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: root@domain.hid
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next prev parent reply other threads:[~2006-05-27 16:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-25 19:34 [Xenomai-core] Porting xeno-{info|load|test} to a busybox system Niklaus Giger
2006-05-26 13:52 ` Jan Kiszka
2006-05-26 16:52 ` Niklaus Giger
2006-05-27 16:42 ` Jan Kiszka [this message]
2006-05-28 10:00 ` Niklaus Giger
2006-05-28 10:45 ` Jan Kiszka
2006-05-28 14:41 ` Niklaus Giger
2006-05-29 11:40 ` Jan Kiszka
2006-06-06 20:32 ` Jim Cromie
2006-06-12 20:33 ` Jan Kiszka
2006-06-12 21:23 ` [Xenomai-core] " Niklaus Giger
[not found] ` <448DD841.1040906@domain.hid>
2006-06-14 19:01 ` [Xenomai-core] " Jim Cromie
2006-06-15 15:01 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44788191.2000405@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=niklaus.giger@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.