[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] perfc: conditionalize credit/credit2 counters


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 3 Dec 2021 13:03:38 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fuphnGsPrrpPYXSMHIcEABMTB/3qmzYatmHPuIsrm+E=; b=GimHJ6/i3ROjsM4Jq/I/QdJOeYqGo8PlPgxZur6QvyNGIY+yszG4fZ2V+eXSTc898cLofLhC4MrF1fvEMFqCK0pJEtSre327TSX4j7TJTvlMqGAm5MC7/HDM0TrAeV7HQKSQ4BVTAExLFvJPhSH6AQWZ20/eKtZmiJaoiVCY/oLho2+tJgPhWjZbSq+wCjFw+FNSq3SPBCD/zky257dZF3rBK5wiAIySsSOT4LUVyzg4eiwoppyU7xcGrVSF9KtOgd8Ig67iUwXErSIanDkL1GW89oljCDgy1LRCBoe1X4RRgWzoKSRNZHXQEN2oW53vcLtzgvjriRm/pdhzzLDGQA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MmuV8VC2L4FoV4b/VDdNIFRLt5iFAwkl0kpn+WRgcBxuuzHfVOHH1KDcBO+62MT+f4lFaU07tq/y/U586BobRiBBb3rk4cpuDhWzdxk8dE0JCsH1yVGHKhKequOE+ioI6FLFj2Gm229PBAmXRKuyHLPVeUQmceIaezMYD1wavAndI8xMrBzt+UBmfkgTV2X4LimU1W8M8LNUH/08vnZtXywBbEtFeCzKMLTVu2JPTjn1AWtygOqYYm35S6Ll6GnjlQfFgM74QwVUW6NpjtIkFHjKEOVe4Ax/HoJ+UDNo7nq9YqFxk3QoVguVEvtt3P9Cl7rIq7M0NhDy6GZ1G9HzmA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 03 Dec 2021 12:03:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

There's no point including them when the respective scheduler isn't
enabled in the build.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/include/xen/perfc_defn.h
+++ b/xen/include/xen/perfc_defn.h
@@ -37,6 +37,7 @@ PERFCOUNTER(tickled_busy_cpu,       "sch
 PERFCOUNTER(unit_check,             "sched: unit_check")
 
 /* credit specific counters */
+#ifdef CONFIG_SCHED_CREDIT
 PERFCOUNTER(delay_ms,               "csched: delay")
 PERFCOUNTER(acct_run,               "csched: acct_run")
 PERFCOUNTER(acct_no_work,           "csched: acct_no_work")
@@ -58,8 +59,10 @@ PERFCOUNTER(migrate_queued,         "csc
 PERFCOUNTER(migrate_running,        "csched: migrate_running")
 PERFCOUNTER(migrate_kicked_away,    "csched: migrate_kicked_away")
 PERFCOUNTER(unit_hot,               "csched: unit_hot")
+#endif
 
 /* credit2 specific counters */
+#ifdef CONFIG_SCHED_CREDIT2
 PERFCOUNTER(burn_credits_t2c,       "csched2: burn_credits_t2c")
 PERFCOUNTER(acct_load_balance,      "csched2: acct_load_balance")
 PERFCOUNTER(upd_max_weight_quick,   "csched2: update_max_weight_quick")
@@ -77,6 +80,7 @@ PERFCOUNTER(credit_reset,           "csc
 PERFCOUNTER(deferred_to_tickled_cpu,"csched2: deferred_to_tickled_cpu")
 PERFCOUNTER(tickled_cpu_overwritten,"csched2: tickled_cpu_overwritten")
 PERFCOUNTER(tickled_cpu_overridden, "csched2: tickled_cpu_overridden")
+#endif
 
 PERFCOUNTER(need_flush_tlb_flush,   "PG_need_flush tlb flushes")
 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.