All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Russell Johnson <russell.johnson@kratosdefense.com>
Cc: Bryan Butler <Bryan.Butler@kratosdefense.com>,
	"xenomai@lists.linux.dev" <xenomai@lists.linux.dev>,
	Shawn McManus <shawn.mcmanus@kratosdefense.com>
Subject: Re: [External] - Re: EVL Memory
Date: Fri, 02 Dec 2022 16:38:26 +0100	[thread overview]
Message-ID: <87sfhx7qta.fsf@xenomai.org> (raw)
In-Reply-To: <87wn797rj3.fsf@xenomai.org>


Philippe Gerum <rpm@xenomai.org> writes:

> Russell Johnson <russell.johnson@kratosdefense.com> writes:
>
>> [[S/MIME Signed Part:Undecided]]
>> I do already have that enabled and have confirmed the proper commit shows up
>> in uname. I will disable LOCKDEP and re-run.
>>
>> Thanks,
>>
>> Russell
>>
>> [[End of S/MIME Signed Part]]
>
> I realized that the line information from the kernel splats was matching
> the latest sources anyway, so you are definitely running the right
> kernel. Can you observe that the threads are indeed stuck with a boosted
> priority that never changes, using evl ps?


The patch below should capture a trace snapshot when the assertion
trips, with a backtrace of the most recently executed function calls
before this happens. This works with the "evl trace" command [1],

e.g.

# evl trace -e
... wait for kernel splats
...
# evl trace > tracelog.txt

[1] https://evlproject.org/core/commands/#evl-trace-command



diff --git a/kernel/evl/mutex.c b/kernel/evl/mutex.c
index 16750fd193377..c3c1576975c7e 100644
--- a/kernel/evl/mutex.c
+++ b/kernel/evl/mutex.c
@@ -653,6 +653,7 @@ void __evl_unlock_mutex(struct evl_mutex *mutex)
 	 */
 	if (IS_ENABLED(CONFIG_EVL_DEBUG_CORE)) {
 		bool bad;
+		trace_evl_trigger("BOOST1");
 		raw_spin_lock_irqsave(&curr->lock, flags);
 		bad = curr->state & EVL_T_BOOST && list_empty(&curr->boosters);
 		raw_spin_unlock_irqrestore(&curr->lock, flags);
diff --git a/kernel/evl/sched/core.c b/kernel/evl/sched/core.c
index 3bfbe37b1eb7b..d1307fb1b4fd5 100644
--- a/kernel/evl/sched/core.c
+++ b/kernel/evl/sched/core.c
@@ -985,6 +985,7 @@ void __evl_schedule(void) /* oob or/and hard irqs off (CPU migration-safe) */
 	 */
 	if (IS_ENABLED(CONFIG_EVL_DEBUG_CORE) &&
 		curr->state & EVL_T_BOOST && list_empty(&curr->boosters)) {
+		trace_evl_trigger("BOOST2");
 		raw_spin_unlock(&curr->lock);
 		EVL_WARN_ON_ONCE(CORE, 1);
 		raw_spin_lock(&curr->lock);

-- 
Philippe.

  reply	other threads:[~2022-12-02 16:05 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <PH1P110MB1050AD875FCD924D827A0A54E23E9@PH1P110MB1050.NAMP110.PROD.OUTLOOK.COM>
     [not found] ` <PH1P110MB10508DD9688B7D0E82AB30CDE23E9@PH1P110MB1050.NAMP110.PROD.OUTLOOK.COM>
2022-11-09 17:04   ` EVL Memory Russell Johnson
2022-11-09 17:20     ` Philippe Gerum
2022-11-11 21:34       ` [External] - " Russell Johnson
2022-11-14  9:53         ` Philippe Gerum
2022-11-14 22:42           ` Russell Johnson
2022-11-15  8:33             ` Philippe Gerum
2022-11-15 17:05               ` Russell Johnson
2022-11-15 18:36                 ` Philippe Gerum
2022-11-16 15:48                   ` Philippe Gerum
2022-11-16 21:37                     ` Russell Johnson
2022-11-17 16:48                       ` Philippe Gerum
2022-11-17 16:57                         ` Russell Johnson
2022-11-17 17:03                           ` Philippe Gerum
2022-11-17 17:37                             ` Russell Johnson
2022-11-18  8:06                               ` Philippe Gerum
2022-11-18 21:08                                 ` Russell Johnson
2022-11-17 22:19                             ` Russell Johnson
2022-11-18  8:02                               ` Philippe Gerum
2022-11-18  8:08                         ` Philippe Gerum
2022-11-19 16:37                           ` Russell Johnson
2022-11-19 16:42                             ` Philippe Gerum
2022-11-19 16:50                               ` Russell Johnson
2022-11-19 18:11                               ` Russell Johnson
2022-11-20  8:25                                 ` Philippe Gerum
2022-11-21 15:56                             ` Philippe Gerum
2022-11-21 18:33                               ` Bryan Butler
2022-11-28 15:21                                 ` Russell Johnson
2022-11-28 16:49                                   ` Philippe Gerum
2022-11-28 20:59                                     ` Russell Johnson
     [not found]                                       ` <0082bff2d91b0125ac60050159d3003e64b45bffa35e0c4f0ed9799e38b97b8c@mu>
2022-11-30 15:57                                         ` Philippe Gerum
2022-12-01 14:36                                           ` Philippe Gerum
2022-12-01 20:01                                             ` Russell Johnson
2022-12-02  9:18                                               ` Philippe Gerum
2022-12-02 15:12                                                 ` Russell Johnson
2022-12-02 15:27                                                   ` Philippe Gerum
2022-12-02 15:38                                                     ` Philippe Gerum [this message]
2022-12-02 20:50                                                       ` Russell Johnson
2022-12-03 11:37                                                         ` Philippe Gerum
2022-12-02 15:48                                                     ` Russell Johnson
2022-12-02 16:50                                                       ` Philippe Gerum
2022-12-02 17:22                                                       ` Philippe Gerum
2022-12-02 22:26                                                         ` Russell Johnson
2022-12-03 11:37                                                           ` Philippe Gerum
2022-12-03 15:44                                                             ` Philippe Gerum
2022-12-04 11:05                                                               ` Philippe Gerum
2022-12-04 18:05                                                                 ` Philippe Gerum
2022-12-04 18:43                                                                   ` Russell Johnson
2022-12-05  6:53                                                                   ` Russell Johnson
2022-12-05  6:59                                                                     ` Russell Johnson
2022-12-05  8:24                                                                       ` Philippe Gerum
2022-12-05 16:31                                                                         ` Russell Johnson
2022-12-05 16:38                                                                           ` Russell Johnson
2022-12-05 17:01                                                                             ` Philippe Gerum
2022-12-05  8:45                                                                     ` Philippe Gerum
2022-11-14 23:33           ` Russell Johnson

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=87sfhx7qta.fsf@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=Bryan.Butler@kratosdefense.com \
    --cc=russell.johnson@kratosdefense.com \
    --cc=shawn.mcmanus@kratosdefense.com \
    --cc=xenomai@lists.linux.dev \
    /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.