Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932148AbcDLFb2 (ORCPT ); Tue, 12 Apr 2016 01:31:28 -0400 Received: from mail-ob0-f195.google.com ([209.85.214.195]:36127 "EHLO mail-ob0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755959AbcDLF3g (ORCPT ); Tue, 12 Apr 2016 01:29:36 -0400 From: "Bill Huey (hui)" To: Peter Zijlstra , Steven Rostedt , linux-kernel@vger.kernel.org Cc: Dario Faggioli , Alessandro Zummo , Thomas Gleixner , KY Srinivasan , Amir Frenkel , Bdale Garbee Subject: [PATCH RFC v0 06/12] Add anonymous struct to sched_rt_entity Date: Mon, 11 Apr 2016 22:29:14 -0700 Message-Id: <1460438960-32060-7-git-send-email-bill.huey@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460438960-32060-1-git-send-email-bill.huey@gmail.com> References: <1460438960-32060-1-git-send-email-bill.huey@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 37 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) --- 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