From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Saiful Khan <saiful.etc@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] how to ensure whethere application is running on Xenomai domain?
Date: Mon, 05 Mar 2007 18:39:46 +0100 [thread overview]
Message-ID: <45EC55E2.90306@domain.hid> (raw)
In-Reply-To: <38b44d590703050928u2c1c9u22797bef6e57f186@domain.hid>
Saiful Khan wrote:
> Hello,
>
> I have ported my GNU/Linux(Posix) application in Xenomai, and I have
> used the xenomai skin. My application is running in highest priority (99).
> 1. How can I be sure that my application is running in Xenomai/Primary
> domain with highest priority?
cat /proc/xenomai/sched
should give you a list of the threads that are actually known by xenomai.
> 2. How can I ensure whethere it is switching to secondary mode due to
> some calls like pritf()?
You have an example of using the SIGXCPU signal for this purpose here:
http://www.xenomai.org/documentation/trunk/html/api/sigxcpu_8c-example.html
This example uses the native API, if you are using the posix api, you
should replace rt_task_set_mode with pthread_set_mode_np, documented here:
http://www.xenomai.org/documentation/trunk/html/api/group__posix__thread.html#g9dd3db5524fccb05a8868b7c33ccaa79
--
Gilles Chanteperdrix
prev parent reply other threads:[~2007-03-05 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 17:28 [Xenomai-help] how to ensure whethere application is running on Xenomai domain? Saiful Khan
2007-03-05 17:39 ` Gilles Chanteperdrix [this message]
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=45EC55E2.90306@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=saiful.etc@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.