[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/8] v2: add info numa monitor command
From: |
Andre Przywara |
Subject: |
[Qemu-devel] [PATCH 3/8] v2: add info numa monitor command |
Date: |
Tue, 16 Dec 2008 15:15:53 +0100 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080508) |
Signed-off-by: Andre Przywara <address@hidden>
--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 277-84917
----to satisfy European Law for business letters:
AMD Saxony Limited Liability Company & Co. KG,
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896, General Partner authorized
to represent: AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
# HG changeset patch
# User Andre Przywara <address@hidden>
# Date 1229430525 -3600
# Node ID 0f3054b66373c2a8b65a5be6d83af63f807dd88f
# Parent a0a2e3026d4acffdce91b776d8c2d733767693c5
add info numa command to the monitor
diff -r a0a2e3026d4a -r 0f3054b66373 monitor.c
--- a/monitor.c Tue Dec 16 13:28:24 2008 +0100
+++ b/monitor.c Tue Dec 16 13:28:45 2008 +0100
@@ -1281,6 +1281,20 @@ static void do_info_kvm(void)
#endif
}
+static void do_info_numa(void)
+{
+ int i, j;
+
+ term_printf("%d nodes\n", numnumanodes);
+ for (i = 0; i < numnumanodes; i++) {
+ term_printf("node %d cpus:", i);
+ for (j = 0; j < 64; j++)
+ if (node_to_cpus[i] & (1ULL << j)) term_printf(" %d", j);
+ term_printf("\n");
+ term_printf("node %d size: %" PRId64 " MB\n", i, node_mem[i] >> 20);
+ }
+}
+
#ifdef CONFIG_PROFILER
int64_t kqemu_time;
@@ -1538,6 +1552,8 @@ static const term_cmd_t info_cmds[] = {
"", "show kqemu information", },
{ "kvm", "", do_info_kvm,
"", "show kvm information", },
+ { "numa", "", do_info_numa,
+ "", "show NUMA information", },
{ "usb", "", usb_info,
"", "show guest USB devices", },
{ "usbhost", "", usb_host_info,
- [Qemu-devel] [PATCH 3/8] v2: add info numa monitor command,
Andre Przywara <=