* [Xenomai-core] xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
@ 2006-08-21 1:53 Jim Cromie
2006-08-21 6:42 ` [Xenomai-core] " Jim Cromie
0 siblings, 1 reply; 7+ messages in thread
From: Jim Cromie @ 2006-08-21 1:53 UTC (permalink / raw)
To: xenomai-core
I get the above error when running xeno-test,
or when running individually, like so:
soekris:/usr/xenomai/bin# ( cd ../testsuite/switchbench; loudly ./run --
-p 10
-n -l 1000 $XENOT_SWITCHBENCH '# switchbench'; )
Sun Aug 20 18:51:53 MDT 2006
running: ./run -- -p 10 -n -l 1000 # switchbench
*
*
* Type ^C to stop this application.
*
*
== Sampling period: 10 us
== Do not interrupt this program
/usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
exception$suflag $* $cmdargs
but I dont get it when running it manually, w/o the ./run wrapper.
soekris:/usr/xenomai/testsuite/switchbench# switchbench
== Sampling period: 100 us
== Do not interrupt this program
RTH| lat min| lat avg| lat max| lost
RTD| 25.568| 28.740| 45.584| 0
soekris:/usr/xenomai/testsuite/switchbench#
soekris:/usr/xenomai/testsuite/switchbench#
BTW, the line-number given above is a red-herring:
177 while test -n "$target_info" ; do
178 action=`echo $target_info|cut -d';' -f1`
179 target_info=`echo $target_info|cut -s -d';' -f2-`
180 set -- $action
181
182 case "$1" in
183
184 push)
I stuffed in an strace, and got this:
+ test ./switchbench = ./switchbench
+ waitflag=1
+ set -- ./switchbench
+ test 0 = 1
+ test 1 = 1
+ echo what ./switchbench -p 10 -n -l 1000
what ./switchbench -p 10 -n -l 1000
+ strace ./switchbench -p 10 -n -l 1000
execve("./switchbench", ["./switchbench", "-p", "10", "-n", "-l",
"1000"], [/* 14 vars */]) = 0
uname({sys="Linux", node="soekris", ...}) = 0
brk(0) = 0x804d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5c000
open("/usr/xenomai/lib/tls/i586/cmov/libpthread.so.0", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/xenomai/lib/tls/i586/cmov", 0xbf8e55d4) = -1 ENOENT (No
such file or directory)
open("/usr/xenomai/lib/tls/i586/libpthread.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/xenomai/lib/tls/i586", 0xbf8e55d4) = -1 ENOENT (No such
file or directory)
open("/usr/xenomai/lib/tls/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/xenomai/lib/tls/cmov", 0xbf8e55d4) = -1 ENOENT (No such
file or directory)
open("/usr/xenomai/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/xenomai/lib/tls", 0xbf8e55d4) = -1 ENOENT (No such file or
directory)
open("/usr/xenomai/lib/i586/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/xenomai/lib/i586/cmov", 0xbf8e55d4) = -1 ENOENT (No such
file or directory)
open("/usr/xenomai/lib/i586/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/xenomai/lib/i586", 0xbf8e55d4) = -1 ENOENT (No such file or
directory)
open("/usr/xenomai/lib/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/xenomai/lib/cmov", 0xbf8e55d4) = -1 ENOENT (No such file or
directory)
open("/usr/xenomai/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/xenomai/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=16163, ...}) = 0
mmap2(NULL, 16163, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f58000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260G\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=84977, ...}) = 0
mmap2(NULL, 70104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0xb7f46000
mmap2(0xb7f54000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7f54000
mmap2(0xb7f56000, 4568, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f56000
close(3) = 0
open("/usr/xenomai/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1245680, ...}) = 0
mmap2(NULL, 1251484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb7e14000
mmap2(0xb7f3c000, 28672, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x128) = 0xb7f3c000
mmap2(0xb7f43000, 10396, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f43000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e13000
mprotect(0xb7f3c000, 20480, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e136c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f58000, 16163) = 0
set_tid_address(0xb7e13708) = 3538
rt_sigaction(SIGRTMIN, {0xb7f4a420, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb7f4a390, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
open("/proc/sys/kernel/version", O_RDONLY) = 3
read(3, "#1 Sat Aug 19 12:08:22 MDT 2006\n", 512) = 32
close(3) = 0
rt_sigaction(SIGXCPU, {0x804a910, [], 0}, NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
mlockall(MCL_CURRENT|MCL_FUTURE) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B115200 opost isig icanon echo
...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f5b000
write(1, "== Sampling period: 10 us\n", 26== Sampling period: 10 us
) = 26
write(1, "== Do not interrupt this program"..., 33== Do not interrupt
this program
) = 33
sched_get_priority_max(SCHED_FIFO) = 99
mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e03000
brk(0) = 0x804d000
brk(0x806e000) = 0x806e000
mprotect(0xb7e03000, 4096, PROT_NONE) = 0
clone(child_stack=0xb7e124c4,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID|CLONE_DETACHED,
parent_tidptr=0xb7e12bf8, {entry_number:6, base_addr:0xb7e12bb0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1},
child_tidptr=0xb7e12bf8) = 3539
+++ killed by SIGFPE +++
Process 3538 detached
+ test -n popall
echo $target_info|cut -d';' -f1
++ echo popall
++ cut '-d;' -f1
+ action=popall
echo $target_info|cut -s -d';' -f2-
++ echo popall
++ cut -s '-d;' -f2-
+ target_info=
+ set -- popall
+ set -o xtrace
+ set -o verbose
BTW
over the past year, Xenomai has moved away from (at least some) of the
ideosyncracies
it used to have:
- modules now get installed with rest of kernel, so modprobe etc just work
this suggests that some parts of xeno-load are now obsolete /
unnecessary.
- ive set LD_LIBRARY_PATH to make life more convenient
Im (idly) wondering if theres more to do, what things need to be done
1st, etc..
FWIW switchtest output is pretty ;-)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 1:53 [Xenomai-core] xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs Jim Cromie
@ 2006-08-21 6:42 ` Jim Cromie
2006-08-21 6:56 ` Philippe Gerum
0 siblings, 1 reply; 7+ messages in thread
From: Jim Cromie @ 2006-08-21 6:42 UTC (permalink / raw)
Cc: xenomai-core
Jim Cromie wrote:
>
>
> *
> == Sampling period: 10 us
> == Do not interrupt this program
> /usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
> exception$suflag $* $cmdargs
>
soekris:/usr/xenomai/bin# gdb ../testsuite/switchbench/switchbench
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb)
(gdb) run -p 10 -n -l 1000
Starting program: /usr/xenomai/testsuite/switchbench/switchbench -p 10
-n -l 1000
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210206528 (LWP 2070)]
(no debugging symbols found)
(no debugging symbols found)
== Sampling period: 10 us
== Do not interrupt this program
[New Thread -1210209360 (LWP 2073)]
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1210209360 (LWP 2073)]
0x0804acc7 in __divdi3 ()
(gdb)
I tried stuffing -g into all *_CFLAGS in src/testsuite/Makefile,
but I couldnt get it to show up in the compilation.
Any hints ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 6:42 ` [Xenomai-core] " Jim Cromie
@ 2006-08-21 6:56 ` Philippe Gerum
2006-08-21 7:52 ` Jim Cromie
0 siblings, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2006-08-21 6:56 UTC (permalink / raw)
To: Jim Cromie; +Cc: xenomai-core
On Mon, 2006-08-21 at 00:42 -0600, Jim Cromie wrote:
> Jim Cromie wrote:
> >
> >
> > *
> > == Sampling period: 10 us
> > == Do not interrupt this program
> > /usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
> > exception$suflag $* $cmdargs
> >
>
>
> soekris:/usr/xenomai/bin# gdb ../testsuite/switchbench/switchbench
> GNU gdb 6.4.90-debian
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
> Using host libthread_db library "/lib/tls/libthread_db.so.1".
>
> (gdb)
> (gdb) run -p 10 -n -l 1000
> Starting program: /usr/xenomai/testsuite/switchbench/switchbench -p 10
> -n -l 1000
> (no debugging symbols found)
> (no debugging symbols found)
> [Thread debugging using libthread_db enabled]
> [New Thread -1210206528 (LWP 2070)]
> (no debugging symbols found)
> (no debugging symbols found)
> == Sampling period: 10 us
> == Do not interrupt this program
> [New Thread -1210209360 (LWP 2073)]
>
> Program received signal SIGFPE, Arithmetic exception.
> [Switching to Thread -1210209360 (LWP 2073)]
> 0x0804acc7 in __divdi3 ()
> (gdb)
>
>
> I tried stuffing -g into all *_CFLAGS in src/testsuite/Makefile,
> but I couldnt get it to show up in the compilation.
>
Try passing --enable-debug to the "configure" script.
> Any hints ?
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
--
Philippe.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 6:56 ` Philippe Gerum
@ 2006-08-21 7:52 ` Jim Cromie
2006-08-21 12:35 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Jim Cromie @ 2006-08-21 7:52 UTC (permalink / raw)
To: rpm; +Cc: xenomai-core
got a backtrace
Philippe Gerum wrote:
> On Mon, 2006-08-21 at 00:42 -0600, Jim Cromie wrote:
>
>> Jim Cromie wrote:
>>
>>> *
>>> == Sampling period: 10 us
>>> == Do not interrupt this program
>>> /usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
>>> exception$suflag $* $cmdargs
>>>
>>>
>> soekris:/usr/xenomai/bin# gdb ../testsuite/switchbench/switchbench
>> I tried stuffing -g into all *_CFLAGS in src/testsuite/Makefile,
>> but I couldnt get it to show up in the compilation.
>>
>>
>
> Try passing --enable-debug to the "configure" script.
>
>
#0 0x0804ae57 in __divdi3 ()
#1 0x08049ac2 in worker (cookie=0x0) at switchbench.c:133
#2 0x0804a18f in rt_task_trampoline (cookie=0x0) at task.c:89
#3 0xb7f8107d in start_thread () from /lib/tls/libpthread.so.0
#4 0xb7f158fe in clone () from /lib/tls/libc.so.6
(gdb)
Ill look deeper later, if its not obvious to the experts
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 7:52 ` Jim Cromie
@ 2006-08-21 12:35 ` Gilles Chanteperdrix
2006-08-21 17:31 ` Jim Cromie
0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2006-08-21 12:35 UTC (permalink / raw)
To: Jim Cromie; +Cc: xenomai-core
Jim Cromie wrote:
> got a backtrace
>
> Philippe Gerum wrote:
> > On Mon, 2006-08-21 at 00:42 -0600, Jim Cromie wrote:
> >
> >> Jim Cromie wrote:
> >>
> >>> *
> >>> == Sampling period: 10 us
> >>> == Do not interrupt this program
> >>> /usr/xenomai/bin/xeno-load: line 182: 2868 Floating point
> >>> exception$suflag $* $cmdargs
> >>>
> >>>
> >> soekris:/usr/xenomai/bin# gdb ../testsuite/switchbench/switchbench
> >> I tried stuffing -g into all *_CFLAGS in src/testsuite/Makefile,
> >> but I couldnt get it to show up in the compilation.
> >>
> >>
> >
> > Try passing --enable-debug to the "configure" script.
> >
> >
> #0 0x0804ae57 in __divdi3 ()
> #1 0x08049ac2 in worker (cookie=0x0) at switchbench.c:133
> #2 0x0804a18f in rt_task_trampoline (cookie=0x0) at task.c:89
> #3 0xb7f8107d in start_thread () from /lib/tls/libpthread.so.0
> #4 0xb7f158fe in clone () from /lib/tls/libc.so.6
> (gdb)
You likely have a division by 0 because nsamples is 0. nsamples come
from the numeric argument of the -n option, and I think you do not pass
a numeric argument to -n, so atoi returns 0.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 12:35 ` Gilles Chanteperdrix
@ 2006-08-21 17:31 ` Jim Cromie
2006-08-21 20:59 ` Gilles Chanteperdrix
0 siblings, 1 reply; 7+ messages in thread
From: Jim Cromie @ 2006-08-21 17:31 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]
Gilles Chanteperdrix wrote:
>
> You likely have a division by 0 because nsamples is 0. nsamples come
> from the numeric argument of the -n option, and I think you do not pass
> a numeric argument to -n, so atoi returns 0.
>
>
Yup, thats it.
prog was getting -n -l 1000
-l is illegal option, but -n needs an arg, and -l became it, and
converts to 0.
so no error caused by -l either !
attached patch does:
xeno-test: drop most options passed to switchbench,, added -h
switchbench:
- sanity check on nsamples.
- 1st column labels on Histogram
- compute statistics (sort of - I couldnt get 'sqrt' to link..)
Also, I recall at one time, one of the testsuite progs was intended
to be run in either xenomai, or in plain kernel.
Is this still the case ?
Or has it been superseded, forex by latency's -t [0-3] options ?
If it is, should xeno-test run them that way as well ?
FWIW, I always found that distinction
too mysterious to not have an explicit option, along with errors
explaining 'insufficient privilege to run in RT-mode' as necessary.
[-- Attachment #2: patch.swbench --]
[-- Type: text/plain, Size: 2560 bytes --]
Index: scripts/xeno-test.in
===================================================================
--- scripts/xeno-test.in (revision 1487)
+++ scripts/xeno-test.in (working copy)
@@ -200,7 +200,7 @@
loudly ./run -- -T 120 $XENOT_SWITCHTEST '# switchtest'
)
( cd `dirname $0`/../testsuite/switchbench
- loudly ./run -- -p 10 -n -l 1000 $XENOT_SWITCHBENCH '# switchbench'
+ loudly ./run -- -h $XENOT_SWITCHBENCH '# switchbench'
)
( cd `dirname $0`/../testsuite/cyclic
loudly ./run -- -p 10 -n -l 1000 $XENOT_CYCLIC '# cyclictest'
Index: src/testsuite/switchbench/switchbench.c
===================================================================
--- src/testsuite/switchbench/switchbench.c (revision 1487)
+++ src/testsuite/switchbench/switchbench.c (working copy)
@@ -8,6 +8,7 @@
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
+#include <math.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
@@ -43,17 +44,42 @@
histogram[inabs < HISTOGRAM_CELLS ? inabs : HISTOGRAM_CELLS - 1]++;
}
-void dump_histogram(void)
+void dump_stats(double sum, int total_hits)
{
- int n;
+ int n;
+ double avg, variance = 0;
- for (n = 0; n < HISTOGRAM_CELLS; n++) {
- long hits = histogram[n];
- if (hits)
- fprintf(stderr, "%d - %d us: %ld\n", n, n + 1, hits);
- }
+ avg = sum / total_hits;
+ for (n = 0; n < HISTOGRAM_CELLS; n++) {
+ long hits = histogram[n];
+ if (hits)
+ variance += hits * (n-avg) * (n-avg);
+ }
+
+ /* compute std-deviation (unbiased form) */
+ variance /= total_hits - 1;
+ // variance = sqrt(variance);
+
+ printf("HSS| %9d| %10.3f| %10.3f\n", total_hits, avg, variance);
}
+void dump_histogram(void)
+{
+ int n, total_hits = 0;
+ double sum = 0;
+ fprintf(stderr, "---|---range-|---samples\n");
+ for (n = 0; n < HISTOGRAM_CELLS; n++) {
+ long hits = histogram[n];
+ if (hits) {
+ total_hits += hits;
+ sum += n * hits;
+ fprintf(stderr, "HSD| %d - %d | %10ld\n",
+ n, n + 1, hits);
+ }
+ }
+ dump_stats(sum, total_hits);
+}
+
void event(void *cookie)
{
int err;
@@ -180,8 +206,14 @@
}
if (sampling_period == 0)
- sampling_period = 100000; /* ns */
+ sampling_period = 100000; /* ns */
+ if (nsamples <= 0) {
+ fprintf(stderr, "disregarding -n <%lld>, using -n <100> us\n",
+ nsamples);
+ nsamples = 100000; /* ns */
+ }
+
signal(SIGINT, SIG_IGN);
signal(SIGTERM, SIG_IGN);
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-core] Re: xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs
2006-08-21 17:31 ` Jim Cromie
@ 2006-08-21 20:59 ` Gilles Chanteperdrix
0 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2006-08-21 20:59 UTC (permalink / raw)
To: Jim Cromie; +Cc: xenomai-core
Jim Cromie wrote:
> Gilles Chanteperdrix wrote:
> >
> > You likely have a division by 0 because nsamples is 0. nsamples come
> > from the numeric argument of the -n option, and I think you do not pass
> > a numeric argument to -n, so atoi returns 0.
> >
> >
>
> Yup, thats it.
>
> prog was getting -n -l 1000
> -l is illegal option, but -n needs an arg, and -l became it, and
> converts to 0.
> so no error caused by -l either !
>
> attached patch does:
Applied, thanks.
>
> xeno-test: drop most options passed to switchbench,, added -h
> switchbench:
> - sanity check on nsamples.
> - 1st column labels on Histogram
> - compute statistics (sort of - I couldnt get 'sqrt' to link..)
sqrt is a math function, which requires linking with -lm. It is
fixed in the repository.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-21 20:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-21 1:53 [Xenomai-core] xeno-load: line 182: 2794 Floating point exception$suflag $* $cmdargs Jim Cromie
2006-08-21 6:42 ` [Xenomai-core] " Jim Cromie
2006-08-21 6:56 ` Philippe Gerum
2006-08-21 7:52 ` Jim Cromie
2006-08-21 12:35 ` Gilles Chanteperdrix
2006-08-21 17:31 ` Jim Cromie
2006-08-21 20:59 ` Gilles Chanteperdrix
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.