All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: xenoka09@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] T_WARNSW ignored?
Date: Fri, 14 Aug 2009 12:05:59 +0200	[thread overview]
Message-ID: <4A853707.10509@domain.hid> (raw)
In-Reply-To: <Pine.LNX.4.62.0908141030170.14595@domain.hid>

Kolja Waschk wrote:
> Hi,
> 
> I'm trying to detect some remaining unwanted mode switches in an
> application using the native Xenomai app. In one task (that is meant to
> stay in RT domain all the time) I set the T_WARNSW bit and run the
> program via gdb, but - although /proc/xenomai/stat shows some 1000 MSW
> per second for that task - no SIGXCPU ever occurs. Only after I interrupt
> it in the terminal where gdbserver was started, the gdb client shows
> SIGINT, and after "cont", SIGXPCU.
> 
> I also tried the examples/native/sigxcpu.c with the same compiler flags.
> There, SIGXCPU occurs and is reported by GDB immediately. What may cause
> this, did I miss something?
> 
> It's on Blackfin, uclinux-dist 2009R1-RC2, Xenomai 2.4.7, Kernel 2.6.28.10 with
> adeos-ipipe-2.6.28.10-blackfin.git-1.10-00.patch.
> 
> This is how it looks when the program is interrupted after some time:
> 
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 270]
> 0x00710042 in rt_sem_p (sem=0xf69028, timeout=81067177008952732) at
> ../../../../xenomai-2.4.7/src/skins/native/sem.c:43
> 43		return XENOMAI_SKINCALL2(__native_muxid, __native_sem_p,
> sem, &timeout);
> Current language:  auto; currently c
> (gdb) cont
> Continuing.
> 
> Program received signal SIGXCPU, CPU time limit exceeded.
> [Switching to Thread 273]
> 0x0070fc20 in rt_dev_ioctl (fd=0, request=4) at
> ../../../../xenomai-2.4.7/src/skins/rtdm/core.c:60
> 60		return XENOMAI_SKINCALL3(__rtdm_muxid,
> (gdb)

I do not know if that may be your issue, but gdb cause mode switches,
and you are not notified for these ones. So, the only relevant test is
to run your application outside gdb and see if the MSW increments.

-- 
                                          Gilles



  reply	other threads:[~2009-08-14 10:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14  9:05 [Xenomai-help] T_WARNSW ignored? Kolja Waschk
2009-08-14 10:05 ` Gilles Chanteperdrix [this message]
2009-08-14 10:08   ` Kolja Waschk
2009-08-14 10:13     ` Philippe Gerum
2009-08-14 10:26       ` Kolja Waschk
2009-08-14 15:05         ` Philippe Gerum
2009-08-14 19:52           ` Waschk,Kolja
2009-08-15 14:01             ` Philippe Gerum
2009-08-15 13:14           ` Waschk,Kolja
2009-08-15 14:10             ` Philippe Gerum

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=4A853707.10509@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenoka09@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.