From: "Richard Weinberger (sigma star gmbh)" <rw@kernel.org>
To: xenomai@lists.linux.dev
Cc: upstream+xenomai@sigma-star.at, Richard Weinberger <richard@nod.at>
Subject: [PATCH 1/5] cobalt/trace: add cobalt_sched_throttle tracepoint
Date: Tue, 1 Dec 2026 15:12:03 +0100 [thread overview]
Message-ID: <20261201141207.2876277-2-rw@kernel.org> (raw)
In-Reply-To: <20261201141207.2876277-1-rw@kernel.org>
From: Richard Weinberger <richard@nod.at>
Add a tracepoint for RT throttling, to be emitted when a CPU gets
throttled and when the throttle is lifted.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
kernel/cobalt/trace/cobalt-core.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/kernel/cobalt/trace/cobalt-core.h b/kernel/cobalt/trace/cobalt-core.h
index f534121cb..4cd72d5ee 100644
--- a/kernel/cobalt/trace/cobalt-core.h
+++ b/kernel/cobalt/trace/cobalt-core.h
@@ -197,6 +197,23 @@ TRACE_EVENT(cobalt_schedule_remote,
TP_printk("status=0x%lx", __entry->status)
);
+TRACE_EVENT(cobalt_sched_throttle,
+ TP_PROTO(int cpu, bool throttled),
+ TP_ARGS(cpu, throttled),
+
+ TP_STRUCT__entry(
+ __field(int, cpu)
+ __field(bool, throttled)
+ ),
+
+ TP_fast_assign(
+ __entry->cpu = cpu;
+ __entry->throttled = throttled;
+ ),
+
+ TP_printk("cpu=%d throttled=%d", __entry->cpu, __entry->throttled)
+);
+
TRACE_EVENT(cobalt_switch_context,
TP_PROTO(struct xnthread *prev, struct xnthread *next),
TP_ARGS(prev, next),
--
2.56.1
next prev parent reply other threads:[~2026-12-01 14:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 14:12 [RFC PATCH 0/5] RT throttling Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` Richard Weinberger (sigma star gmbh) [this message]
2026-12-01 14:12 ` [PATCH 2/5] cobalt/sched: add " Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 3/5] cobalt/sched-sporadic: stop budget accounting on " Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 4/5] cobalt/sched-quota: charge the running group " Richard Weinberger (sigma star gmbh)
2026-12-01 14:12 ` [PATCH 5/5] testsuite/smokey: add sched-throttle test Richard Weinberger (sigma star gmbh)
2026-12-01 15:29 ` [RFC PATCH 0/5] RT throttling Jan Kiszka
2026-12-01 15:32 ` Richard Weinberger
2026-12-01 15:36 ` Jan Kiszka
2026-12-01 15:38 ` Richard Weinberger
2026-12-01 15:40 ` Jan Kiszka
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=20261201141207.2876277-2-rw@kernel.org \
--to=rw@kernel.org \
--cc=richard@nod.at \
--cc=upstream+xenomai@sigma-star.at \
--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.