All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gsellmann Peter" <Peter.Gsellmann@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help]  accessing context switch counter from rttask
Date: Tue, 26 Jun 2007 17:01:41 +0200	[thread overview]
Message-ID: <15cf230500002197@domain.hid> (raw)
Message-ID: <81B5F1E63FF64C458F503BD1839AD784145486@domain.hid> (raw)

Hi!

I searched for a while and found this snippet

RT_TASK *rt = rt_task_self();
int x = rt->thread_base.stat.csw;

should give the number of context switches, but:
RT_TASK in non-kernel mode is only RT_TASK_PLACEHOLDER so i have no
access to thread_base!

Is there an official way to get this info (w/o opening
"/proc/xenomai/...")?


TIA,
Peter


             reply	other threads:[~2007-06-26 15:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-26 15:01 Gsellmann Peter [this message]
2007-06-26 15:01 ` [Xenomai-help] accessing context switch counter from rttask Gsellmann Peter
2007-06-26 15:39   ` Jan Kiszka
2007-07-08 12:00     ` Jan Kiszka

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=15cf230500002197@domain.hid \
    --to=peter.gsellmann@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.