All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] sem_wait increments fault counter
Date: Thu, 07 May 2009 15:32:56 +0200	[thread overview]
Message-ID: <1241703176.26544.729.camel@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A0198FCE1@domain.hid>

On Tue, 2009-05-05 at 15:44 +0200, roderik.wildenburg@domain.hid
wrote:
> Dear Gurus,
> 
> every time I call sem_wait a fault counter is incremented (TRAP 0).
> sem_wait itself does not return an error :
> 
> uc101 # cat /proc/xenomai/faults
> TRAP         CPU0
>   0:            1    (Data or instruction access)
>   1:            0    (Alignment)
>   2:            0    (Altivec unavailable)
>   3:            0    (Program check exception)
>   4:            0    (Machine check exception)
>   5:            0    (Unknown)
>   6:            0    (Instruction breakpoint)
>   7:            0    (Run mode exception)
>   8:            0    (Single-step exception)
>   9:            0    (Non-recoverable exception)
>  10:            0    (Software emulation)
>  11:            0    (Debug)
>  12:            0    (SPE)
>  13:            0    (Altivec assist)
> 
> what could be the reason for this? Is this serious?

Not necessarily on ppc. Under certain circumstances, a minor fault such
as a TLB miss may happen. Usually, 85xx is more prone to this than 6xx
though, but this does not normally affect latencies.

> I have to add that sem_wait is called form a Linux-Prozess (linked with
> xenomai libraries, but no xenomai thread is created) when this happens.
> 

Only exceptions caught on behalf of the primary domain are reported
by /proc/xenomai/faults, so somehow, this must be a real-time thread
triggering this.

> System: PPC Linux 2.4.25; Xenomai 2.3.5 
> 
> Thank you for your help
> Roderik
> 
> --------------------------------------------------------
> manroland AG
> Vorsitzender des Aufsichtsrates: Hanno C. Fiedler
> Vorstand: Gerd Finkbeiner (Vorsitzender), Dr. Ingo Koch, Dr. Markus Rall, Paul Steidle   
> Sitz der Gesellschaft: Offenbach am Main, Registergericht: Amtsgericht Offenbach HRB-Nr. 42592
> USt-Ident-Nr. DE 250200933
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




      parent reply	other threads:[~2009-05-07 13:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05 13:44 [Xenomai-help] sem_wait increments fault counter roderik.wildenburg
2009-05-07 13:02 ` Gilles Chanteperdrix
2009-05-07 13:47   ` roderik.wildenburg
2009-05-07 14:05     ` Gilles Chanteperdrix
2009-05-08  7:14       ` roderik.wildenburg
2009-05-08 10:36         ` Philippe Gerum
2009-05-08 12:11           ` roderik.wildenburg
2009-05-08 15:24         ` Gilles Chanteperdrix
2009-05-15  9:53           ` [Xenomai-help] sem_wait increments fault counter - solved roderik.wildenburg
2009-05-07 13:32 ` Philippe Gerum [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=1241703176.26544.729.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=roderik.wildenburg@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.