From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 0 of 6] Xen: generalize and beautify scheduling related perfc and stats Date: Mon, 22 Oct 2012 16:40:33 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: George Dunlap , Paul Durrant , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org Hello Everyone, The main idea behind this series was to cleanup a bit the stats management within the SEDF code in sched_sedf.c. While looking into it, I thought the best idea to achieve that was to generalize a little bit the stat and perfcounter macros we have in credit, so that they could be used within the other schedulers too. That is then what these patches ended up doing. It's definitely nothing urgent or particularly important now, but will help if/when we decide to make a broader use of performance counters in the scheduler code (and I really plan to do that for SEDF at some point! :-D). Very few functional changes are introduced and no hunk is effective if the hypervisor is not compiled with 'perfc=y'. While at it, as I found out build is broken with 'perfc=y', the very first patch in the series tries to fix that. Paul, as it seems it was you that introduced those two counters, could you double check? (As it happens in viridian.c and, for me, it could be like the first time or so I even hear the word 'Viridian' ;-P.) Thanks and Regards, Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)