All of lore.kernel.org
 help / color / mirror / Atom feed
* More details on health monitoring notifications
@ 2022-07-01 17:19 Russell Johnson
  2022-07-05 22:25 ` Russell Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Russell Johnson @ 2022-07-01 17:19 UTC (permalink / raw)
  To: xenomai


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

Hello,

 

I have gotten a health monitoring thread going that tracks all the EVL
threads running in my app. The goal was to try and figure out what is
causing occasional in-band switches in some of my EVL threads. I am seeing
the notifications now that give me a little more insight, and the two
diagnostic codes I am seeing are 2 (switched inband due to syscall) and 3
(switched inband due to fault). I am finding these to be quite hard to
pinpoint specifically throughout my code. Is there any way to get more
information into what exactly is causing these notifications from the EVL
core? It would be great to have a callstack of some kind, but I am not sure
if that is possible. Any insight would be helpful.

 

Thanks,

 

Russell


[-- Attachment #1.2: Type: text/html, Size: 2357 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6759 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: More details on health monitoring notifications
@ 2022-07-07 20:02 Russell Johnson
  2022-07-14  8:19 ` Philippe Gerum
  0 siblings, 1 reply; 7+ messages in thread
From: Russell Johnson @ 2022-07-07 20:02 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai


[-- Attachment #1.1: Type: text/plain, Size: 847 bytes --]

Correct, it is running on x86. I am not sure what would be causing a page 

fault in the EVL threads as I figured the mlockall call by evl_init would
take 

care of preventing that from happening.

 

I have tried to run the app with gdb (used to work fine pre-EVL), but now I 

get all sorts off exceptions and error codes when trying to run in the 

debugger. I quite frequently see EPERM issues with evl mutex unlock/lock
(even 

though it works fine when not run through a debugger). Also, when I swap the


thread mode flag from T_HMOBS to T_HMSIG and run in the debugger, I get a 

"11776 CPU time limit exceeded (core dumped)" error on the create call for
an 

evl event in one of my threads. I am not sure why I am seeing such different


behavior in the debugger versus the normal run when it comes to the evl API 

calls. Any ideas?

 


[-- Attachment #1.2: Type: text/html, Size: 3067 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 6759 bytes --]

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

end of thread, other threads:[~2022-07-14  8:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 17:19 More details on health monitoring notifications Russell Johnson
2022-07-05 22:25 ` Russell Johnson
2022-07-06 14:57   ` Philippe Gerum
2022-07-06 19:05     ` Leonid Gasheev via Xenomai
2022-07-07 19:25     ` [External] - " Russell Johnson
2022-07-07 20:02 Russell Johnson
2022-07-14  8:19 ` Philippe Gerum

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.