All of lore.kernel.org
 help / color / mirror / Atom feed
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: Sun, 28 May 2006 12:45:29 +0200	[thread overview]
Message-ID: <44797F49.7020705@domain.hid> (raw)
In-Reply-To: <200605281200.18974.niklaus.giger@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 3465 bytes --]

Niklaus Giger wrote:
> Am Samstag, 27. Mai 2006 18:42 schrieb Jan Kiszka:
>> Niklaus Giger wrote:
> <..>
>> Still broken:
> <..>
> Sorry for not catching this part, but my kernel config did not set 
> CONFIG_IKCONFIG. Fixed now.
>> 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
> Should be fixed with the attached patch
>> There is another occurrence of "zcat | grep" which needs fixing.
> This one too.
>>>>> /bin/xeno-test: /bin/xeno-test: 264: getopts: not found
> <..>
>> 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:
> Added to procedure checkUtilities and checkHelpers (after having parsed the 
> options). Added them unconditionally as there might be even *nix systems 
> around which are lacking coreutilities like awk, cut, curl, mail, script.
> 
> Added a "ps | grep $_j" to show whether a dd job is still running before 
> killing it. Now, at least running under the busybox. the dd jobs get killed 
> as they should. Therefore I added a "killall dd" for the case the dd_jobs 
> variable is empty.

But there is still no load during the tests, correct?

> 
> You should be able to xeno-test under the BusyBox without any parameter, I 
> added however often a "-T 1" to make them run faster. 
> 
> Could you give this patch another try? Thanks for your patience, but the 
> variability is very high as both the kernel and the busybox have a lot of 
> config options.

Yeah, I know. Therefore it takes someone looking at it from different
perspectives. :)

Basically works now, but I found two oddities:

- special characters in line 152 of xeno-test:

> @@ -83,20 +141,19 @@
>
>
>  boxinfo() { # static info, show once
> +    loudly `dirname $0`/xeno-config --verbose
> +    loudly `dirname $0`/xeno-info
>
> -    loudly ./xeno-config --verbose
> -    loudly ./xeno-info
> -
>      loudly cat /proc/cpuinfo	# bogomips changes under CPU_FREQ
>
>      # how much of the config do we want ?
> -    local cmd="zgrep -E '$whatconf'"
> -    [ "$verbose" = 1 ] && cmd=cat
> -
> -    if [ -f /proc/config.gz ]; then	# get the config
> -	loudly $cmd /proc/config.gz
> -    elif [ -f /lib/modules/`uname -r`/build/.config ]; then
> -	loudly $cmd /lib/modules/`uname -r`/build/.config
> +    local filter=" grep -E '$whatconf'"
> +    [ "$verbose" = 1 ] && filter=
> +    if test -f /proc/config.gz; then     # get the config
                                        ^^^^

- the output of xeno-test contains this error:

running: cat /proc/cpuinfo
processor       : 0
[...]
bogomips        : 2628.76

/bin/xeno-test: /bin/xeno-test: 325:  : not found
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_IPIPE=y

???

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2006-05-28 10:45 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
2006-05-28 10:00       ` Niklaus Giger
2006-05-28 10:45         ` Jan Kiszka [this message]
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=44797F49.7020705@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.