From: Jeff Webb <jeff.webb@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] switchtest and Xenomai 2.2.4
Date: Fri, 27 Oct 2006 09:45:29 -0500 [thread overview]
Message-ID: <45421B89.3090302@domain.hid> (raw)
In-Reply-To: <4541C0E6.3070807@domain.hid>
Gilles Chanteperdrix wrote:
> Ok, could you try one last thing: keep try_module_get and module_put in
> ksrc/drivers/testing/switchtest.c and apply the attached patch to
> src/testsuite/switchtest/switchtest.c
This does not seem to fix the problem completely. Output stops after pressing ctrl-c one time, and I get:
[root xeno-build-r1749p5]# ps a -T
PID SPID TTY STAT TIME COMMAND
19878 19878 pts/1 SLl+ 0:00 ./switchtest
19878 19884 pts/1 SLl+ 0:00 ./switchtest
19878 19885 pts/1 SLl+ 0:00 ./switchtest
19878 19886 pts/1 SLl+ 0:00 ./switchtest
19878 19887 pts/1 SLl+ 0:00 ./switchtest
[root xeno-build-r1749p5]# cat /proc/xenomai/sched
CPU PID PRI PERIOD TIMEOUT STAT NAME
0 0 -1 0 0 R ROOT/0
1 0 -1 0 0 R ROOT/1
0 19878 0 0 0 X switchtest
0 0 1 0 0 W rtk1/0
0 0 1 0 0 W rtk2/0
0 0 1 0 0 Wf rtk3/0
0 0 1 0 0 Wf rtk4/0
0 0 1 0 0 Wf rtk5/0
0 0 1 0 0 Wf rtk6/0
0 19884 1 0 0 R rtus0-11
0 19885 1 0 0 R rtus0-12
0 19886 1 0 0 R rtus_ufps0-13
0 19887 1 0 0 R rtus_ufps0-14
1 0 1 0 0 W rtk1/1
1 0 1 0 0 W rtk2/1
1 0 1 0 0 Wf rtk3/1
1 0 1 0 0 Wf rtk4/1
1 0 1 0 0 Wf rtk5/1
1 0 1 0 0 Wf rtk6/1
After pressing ctrl-c a second time, switchtest exits leaving a clean 'ps', but I get:
[root xeno-build-r1749p5]# cat /proc/xenomai/sched
CPU PID PRI PERIOD TIMEOUT STAT NAME
0 0 -1 0 0 R ROOT/0
1 0 -1 0 0 R ROOT/1
0 0 1 0 0 W rtk1/0
0 0 1 0 0 W rtk2/0
0 0 1 0 0 Wf rtk3/0
0 0 1 0 0 Wf rtk4/0
0 0 1 0 0 Wf rtk5/0
0 0 1 0 0 Wf rtk6/0
1 0 1 0 0 W rtk1/1
1 0 1 0 0 W rtk2/1
1 0 1 0 0 Wf rtk3/1
1 0 1 0 0 Wf rtk4/1
1 0 1 0 0 Wf rtk5/1
1 0 1 0 0 Wf rtk6/1
Removing the module then fails:
[root switchtest]# /sbin/rmmod xeno_switchtest
ERROR: Module xeno_switchtest is in use
[root switchtest]#
I can run switchtest multiple times, but I get more and more leftover threads in /proc/xenomai/stat.
-Jeff
next prev parent reply other threads:[~2006-10-27 14:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-15 21:32 [Xenomai-core] Xenomai v2.2.4 Philippe Gerum
2006-10-25 20:10 ` [Xenomai-help] switchtest and Xenomai 2.2.4 Jeff Webb
2006-10-25 23:43 ` Jeff Webb
2006-10-26 8:21 ` Gilles Chanteperdrix
2006-10-26 15:51 ` Jeff Webb
2006-10-26 15:56 ` Gilles Chanteperdrix
2006-10-26 16:44 ` Jeff Webb
2006-10-26 16:55 ` Jan Kiszka
2006-10-26 18:53 ` Jeff Webb
2006-10-26 7:35 ` Gilles Chanteperdrix
[not found] ` <454078AD.5000907@domain.hid>
[not found] ` <4540DE60.40209@domain.hid>
[not found] ` <4540E1AB.2040200@domain.hid>
[not found] ` <4540EABD.10403@domain.hid>
[not found] ` <4540ECA6.5000604@domain.hid>
2006-10-26 19:49 ` Jeff Webb
2006-10-27 8:18 ` Gilles Chanteperdrix
2006-10-27 14:45 ` Jeff Webb [this message]
2006-10-27 15:05 ` Gilles Chanteperdrix
2006-10-27 16:25 ` Jeff Webb
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=45421B89.3090302@domain.hid \
--to=jeff.webb@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.