From: Kaleb Pederson Subject: Re: pragmatically determine scheduler type Date: Mon, 15 May 2006 17:27:45 -0700 Message-ID: <200605151727.45883.kibab@icehouse.net> References: <20060515195815.GB29721@kibab> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: B Thomas List-Id: xen-devel@lists.xenproject.org Yes, that was exactly what I meant and exactly what I needed! Thank you. --Kaleb On Monday 15 May 2006 5:19 pm, B Thomas wrote: > Assuming that you meant programatically, you can use the xc_sched_id call > from libxenctrl to get this information: > > from xenctrl.h: int xc_sched_id(int xc_handle, int *sched_id); > > use the SCHED_BVT and SCHED_SEDF symbols > > use xc_interface_open() to get the xc_handle used above, > xc_interface_close(handle) to close it > > > -b > > On 5/15/06, Kaleb Pederson wrote: > > Assuming both the BVT and SEDF schedulers are going to be supported, how > > do I pragmatically determine which scheduler is in use? > > > > I guess this assumes 3.0.2 at the moment, but I would hope to have > > something that could run on any version of 3.0.X. I could parse the > > kernel command line arguments in combination with known information > > about the running version... but that's fairly ugly. > > > > Thanks for the help. > > > > --Kaleb > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel