J. Niehaus wrote: > Hello, > > I have written a xenomai application (posix-skin) with several tasks. All of > them should normally use primary mode (SCHED_FIFO). While some are allowed > to switch to secondary mode for stuff like I/O and memory allocation others > must not switch due to hard realtime constraints. > > Is there a way to check if and how often a thread has switched to secondary > mode and maybe even what system call caused the switch? While a test from > within the program itself would be great some information from /proc/xenomai > would also do.
You may want to use pthread_set_mode_np: http://www.xenomai.org/documentation/trunk/html/api/group__posix__thread.html#ga14 -- Gilles Chanteperdrix. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help