Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1376484

[PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From "Bill Huey (hui)" <bill.huey@gmail.com>
Newsgroups linux.kernel
Subject [PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity
Date Tue, 12 Apr 2016 07:40:02 +0200
Message-ID <rmZdo-1UI-21@gated-at.bofh.it> (permalink)
References <rmZ3H-1MB-3@gated-at.bofh.it>
X-Original-To Peter Zijlstra <a.p.zijlstra@chello.nl>, Steven Rostedt <rostedt@goodmis.org>, linux-kernel@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=soY9StWc2DQ2v+mnHcgQgH+pco9+aUk4RaV4lywXSmM=; b=sQd3yBbNwhzPU1plxL7QYBquVesJ79ynp1grqxfyMjvEPhsc6UwUX0xmkWyEcnkzI0 pw0TxZGbUVGJa07Q1v3EYgVGKkj9RDu798dJmiBAEDAQK9Z3jQjYATilzufNBMW88QR1 rQSuH8DWagQBfypkewHoT0VqEXOyNHaVOOKpQi6eoeT07b6Jnzw/Tv3N0juK5s8gc75z JI2pNcHTE9YNw1mbWDlbSczjmyTd3R8LtnMyVBaOGdflhSrfj8q/2RggHiFNspJYKeYq 8RmGxwWhbgNqsMH5KHjF5sQVuLav1YJjYH8U78eHsmrM3pJPSCeCAn9793GkNixecw0H vktw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=soY9StWc2DQ2v+mnHcgQgH+pco9+aUk4RaV4lywXSmM=; b=CjhvFQXeKF8vgbcHMMeKrp6/BYFVJ6mSGx1umCqt8FGuvOiNH+cZpfzEgcINFuPps6 VcOZUemGXcfyIGzdi5o4qmZo6ZsfSreZbamzWlOYt3LUwqVuYTtLFEdK7CWFoLUFBZNC pNljSG+ULSoE3M40rF3DfGFcf/jRbxSAV9ifwMzc+1KSlLvw6nM3QDUe7ACJw+Yp707E b3l+bsdSCcVagOpefQPKwd+S+GsplOXo4HhbZnz84iLgBjrCEl4Xvg6ZNJTBCh0k90bx cgaTdyHh3TTR4D/jfv8DsELFXZdIUjqrLLJHXRnW2cIkjy4HWlTKzZL7XUq7Ha2Cb8aV 1NAg==
X-Gm-Message-State AOPr4FVYglS2g9izF2LuTdlqhPVHBdj+XveIJXj5KGEURpN65FQai84281kErULQ+Fvn0Q==
X-Received by 10.60.233.163 with SMTP id tx3mr569144oec.77.1460438970707; Mon, 11 Apr 2016 22:29:30 -0700 (PDT)
X-Mailer git-send-email 2.5.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
X-Original-Cc Dario Faggioli <raistlin@linux.it>, Alessandro Zummo <a.zummo@towertech.it>, Thomas Gleixner <tglx@linutronix.de>, KY Srinivasan <kys@microsoft.com>, Amir Frenkel <frenkel.amir@gmail.com>, Bdale Garbee <bdale@gag.com>
X-Original-Date Mon, 11 Apr 2016 22:29:14 -0700
X-Original-Message-ID <1460438960-32060-7-git-send-email-bill.huey@gmail.com>
X-Original-References <1460438960-32060-1-git-send-email-bill.huey@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1376484

Show key headers only | View raw


Add an anonymous struct to support admittance using a red-black tree,
overrun tracking, state for whether or not to yield or block, debugging
support, execution slot pattern for the scheduler.

Signed-off-by: Bill Huey (hui) <bill.huey@gmail.com>
---
 include/linux/sched.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 084ed9f..cff56c6 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1305,6 +1305,21 @@ struct sched_rt_entity {
 	/* rq "owned" by this entity/group: */
 	struct rt_rq		*my_q;
 #endif
+#ifdef CONFIG_RTC_CYCLIC
+	struct {
+		struct rb_node node; /* admittance structure */
+		struct list_head task_list;
+		unsigned long count; /* overrun count per slot */
+		int type, color, yield;
+		u64 slots;
+
+		/* debug */
+		unsigned long last_task_state;
+
+		/* instrumentation  */
+		unsigned int machine_state, last_machine_state;
+	} rt_overrun;
+#endif
 };
 
 struct sched_dl_entity {
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH RFC v0 00/12] Cyclic Scheduler Against RTC "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:30 +0200
  [PATCH RFC v0 01/12] Kconfig change "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 03/12] Add cyclic support to rtc-dev.c "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 10/12] Export SCHED_FIFO/RT requeuing functions "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 07/12] kernel/userspace additions for addition ioctl() support for rtc "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 08/12] Compilation support "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 02/12] Reroute rtc update irqs to the cyclic scheduler handler "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 12/12] Cyclic/rtc documentation "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  [PATCH RFC v0 05/12] Task tracking per file descriptor "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-12 07:40 +0200
  Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC Mike Galbraith <umgwanakikbuti@gmail.com> - 2016-04-12 08:00 +0200
    Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC Mike Galbraith <umgwanakikbuti@gmail.com> - 2016-04-12 08:10 +0200
  Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC Juri Lelli <juri.lelli@arm.com> - 2016-04-13 11:00 +0200
    Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-13 11:40 +0200
      Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC Juri Lelli <juri.lelli@arm.com> - 2016-04-13 12:10 +0200
        Re: [PATCH RFC v0 00/12] Cyclic Scheduler Against RTC "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-13 12:40 +0200

csiph-web