All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Spurious relax test?
@ 2014-12-26  5:46 Yogi A. Patel
  2014-12-26 15:58 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Yogi A. Patel @ 2014-12-26  5:46 UTC (permalink / raw)
  To: xenomai

Hi -

I’ve implemented the code provided on the Xenomai website for finding spurious relaxes in Xenomai 2 - however I’m a bit skeptical about whether or not I’ve implemented it correctly since I don’t ever see any output to the terminal.

Is there any way to “induce” a relax to test the implementation and know that it is in fact catching any drops to secondary mode?

Yogi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Spurious relax test?
  2014-12-26  5:46 [Xenomai] Spurious relax test? Yogi A. Patel
@ 2014-12-26 15:58 ` Gilles Chanteperdrix
  2014-12-26 16:55   ` Yogi A. Patel
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-26 15:58 UTC (permalink / raw)
  To: Yogi A. Patel; +Cc: xenomai

On Fri, Dec 26, 2014 at 12:46:58AM -0500, Yogi A. Patel wrote:
> Hi -
> 
> I’ve implemented the code provided on the Xenomai website for finding spurious relaxes in Xenomai 2 - however I’m a bit skeptical about whether or not I’ve implemented it correctly since I don’t ever see any output to the terminal.
> 
> Is there any way to “induce” a relax to test the implementation and know that it is in fact catching any drops to secondary mode?

See examples/native/sigdebug.c

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Spurious relax test?
  2014-12-26 15:58 ` Gilles Chanteperdrix
@ 2014-12-26 16:55   ` Yogi A. Patel
  2014-12-26 17:15     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Yogi A. Patel @ 2014-12-26 16:55 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai


> On Dec 26, 2014, at 10:58, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> 
> On Fri, Dec 26, 2014 at 12:46:58AM -0500, Yogi A. Patel wrote:
>> Hi -
>> 
>> I’ve implemented the code provided on the Xenomai website for finding spurious relaxes in Xenomai 2 - however I’m a bit skeptical about whether or not I’ve implemented it correctly since I don’t ever see any output to the terminal.
>> 
>> Is there any way to “induce” a relax to test the implementation and know that it is in fact catching any drops to secondary mode?
> 
> See examples/native/sigdebug.c

Thanks, Gilles. I implemented the warning method using the example as a guide.

It appears to be working - however I’m a bit puzzled by the output here.

The only error I am getting is: SIGDEBUG received, reason 2: invoked syscall
rtxi(_Z17rt_switch_warningiP9siginfo_tPv+0x3d)[0x43883d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f71e54a9340]
/lib/x86_64-linux-gnu/libpthread.so.0(sem_post+0x2d)[0x7f71e54a790d]

The application I am testing is a Qt based application - I have a feeling these are all coming from the posting of events to the Qt event stack but can’t tell for sure.

Is there a way/how can I get more information from the trace?

Thanks!

> 
> -- 
> 					    Gilles.

Yogi A. Patel
@yapatel525 <https://twitter.com/yapatel525>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Spurious relax test?
  2014-12-26 16:55   ` Yogi A. Patel
@ 2014-12-26 17:15     ` Gilles Chanteperdrix
       [not found]       ` <0F406C82-532C-4D88-8D92-CEE25D5E0D4A@gatech.edu>
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-26 17:15 UTC (permalink / raw)
  To: Yogi A. Patel; +Cc: xenomai

On Fri, Dec 26, 2014 at 11:55:57AM -0500, Yogi A. Patel wrote:
> 
> > On Dec 26, 2014, at 10:58, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> > 
> > On Fri, Dec 26, 2014 at 12:46:58AM -0500, Yogi A. Patel wrote:
> >> Hi -
> >> 
> >> I’ve implemented the code provided on the Xenomai website for finding spurious relaxes in Xenomai 2 - however I’m a bit skeptical about whether or not I’ve implemented it correctly since I don’t ever see any output to the terminal.
> >> 
> >> Is there any way to “induce” a relax to test the implementation and know that it is in fact catching any drops to secondary mode?
> > 
> > See examples/native/sigdebug.c
> 
> Thanks, Gilles. I implemented the warning method using the example as a guide.
> 
> It appears to be working - however I’m a bit puzzled by the output here.
> 
> The only error I am getting is: SIGDEBUG received, reason 2: invoked syscall
> rtxi(_Z17rt_switch_warningiP9siginfo_tPv+0x3d)[0x43883d]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f71e54a9340]
> /lib/x86_64-linux-gnu/libpthread.so.0(sem_post+0x2d)[0x7f71e54a790d]
> 
> The application I am testing is a Qt based application - I have a feeling these are all coming from the posting of events to the Qt event stack but can’t tell for sure.
> 
> Is there a way/how can I get more information from the trace?

gdb

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] Spurious relax test?
       [not found]       ` <0F406C82-532C-4D88-8D92-CEE25D5E0D4A@gatech.edu>
@ 2014-12-26 17:32         ` Gilles Chanteperdrix
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-26 17:32 UTC (permalink / raw)
  To: Yogi A. Patel

On Fri, Dec 26, 2014 at 12:19:02PM -0500, Yogi A. Patel wrote:
> 
> > On Dec 26, 2014, at 12:15, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> > 
> > On Fri, Dec 26, 2014 at 11:55:57AM -0500, Yogi A. Patel wrote:
> >> 
> >>> On Dec 26, 2014, at 10:58, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> >>> 
> >>> On Fri, Dec 26, 2014 at 12:46:58AM -0500, Yogi A. Patel wrote:
> >>>> Hi -
> >>>> 
> >>>> I’ve implemented the code provided on the Xenomai website for finding spurious relaxes in Xenomai 2 - however I’m a bit skeptical about whether or not I’ve implemented it correctly since I don’t ever see any output to the terminal.
> >>>> 
> >>>> Is there any way to “induce” a relax to test the implementation and know that it is in fact catching any drops to secondary mode?
> >>> 
> >>> See examples/native/sigdebug.c
> >> 
> >> Thanks, Gilles. I implemented the warning method using the example as a guide.
> >> 
> >> It appears to be working - however I’m a bit puzzled by the output here.
> >> 
> >> The only error I am getting is: SIGDEBUG received, reason 2: invoked syscall
> >> rtxi(_Z17rt_switch_warningiP9siginfo_tPv+0x3d)[0x43883d]
> >> /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f71e54a9340]
> >> /lib/x86_64-linux-gnu/libpthread.so.0(sem_post+0x2d)[0x7f71e54a790d]
> >> 
> >> The application I am testing is a Qt based application - I have a feeling these are all coming from the posting of events to the Qt event stack but can’t tell for sure.
> >> 
> >> Is there a way/how can I get more information from the trace?
> > 
> > gdb
> 
> How exactly does gdb interface with the output above?..

See:
https://sourceware.org/gdb/current/onlinedocs/gdb/Signals.html#Signals

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-26 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-26  5:46 [Xenomai] Spurious relax test? Yogi A. Patel
2014-12-26 15:58 ` Gilles Chanteperdrix
2014-12-26 16:55   ` Yogi A. Patel
2014-12-26 17:15     ` Gilles Chanteperdrix
     [not found]       ` <0F406C82-532C-4D88-8D92-CEE25D5E0D4A@gatech.edu>
2014-12-26 17:32         ` Gilles Chanteperdrix

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.