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


Groups > linux.kernel > #1381311 > unrolled thread

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

Started by"Bill Huey (hui)" <bill.huey@gmail.com>
First post2016-04-18 08:50 +0200
Last post2016-04-18 08:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH RFC v2 06/12] Add anonymous struct to sched_rt_entity "Bill Huey (hui)" <bill.huey@gmail.com> - 2016-04-18 08:50 +0200

#1381311 — [PATCH RFC v2 06/12] Add anonymous struct to sched_rt_entity

From"Bill Huey (hui)" <bill.huey@gmail.com>
Date2016-04-18 08:50 +0200
Subject[PATCH RFC v2 06/12] Add anonymous struct to sched_rt_entity
Message-ID<rpbar-10N-27@gated-at.bofh.it>
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 52c4847..23c3173 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1307,6 +1307,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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web