All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [xeno_switchtest] missing linux-dev registration?
@ 2010-04-21 11:25 Nero Fernandez
  2010-04-21 11:54 ` Jan Kiszka
  2010-04-21 11:59 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 5+ messages in thread
From: Nero Fernandez @ 2010-04-21 11:25 UTC (permalink / raw)
  To: xenomai

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

This is regarding the pervasive error "Unable to open switchtest device"
while
trying to test context-switch timings using 'switchtest' testsuite
application.

Looking at the testsuite code, i found that
  - 'latency' (which can successfully operate the xeno_switchtest driver )
     uses rtdm_dev_xxx calls whereas
 - 'switchtest' application uses the posix 'open'/'close' system-calls
    for driver-interaction

Looking at ksrc/drivers/testing/switchtest.c, i found that there is no
registration
of switchtest under linux-device-driver subsystem (even as a misc driver
like rtnet or rtheap do).
Thus, there doesnt seem to be a way through which a linux-process (non-RT
mode)
may access xeno_switchtest driver through /dev/rttest<x>
(or the new /dev/rttest-switchtst<x>
  ref: https://mail.gna.org/public/xenomai-git/2010-04/msg00073.html).

In case there is such a registration required, i would be more than willing
to contribute.

In case, the 'open' system-call is handled by one of the skins
 (i have native, posix,rtai and rtdm enabled in my kernel-config),
kindly point out the code and enlighten.

Thanks for running this awesome project and all the help/pointers.

[-- Attachment #2: Type: text/html, Size: 1408 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-21 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 11:25 [Xenomai-core] [xeno_switchtest] missing linux-dev registration? Nero Fernandez
2010-04-21 11:54 ` Jan Kiszka
2010-04-21 11:59 ` Gilles Chanteperdrix
2010-04-21 16:05   ` Nero Fernandez
2010-04-21 16:08     ` 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.