From 90fc2f273a32793e0d0413d7adbf7bc43b995914 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 24 Jan 2017 13:47:03 +0000 Subject: [PATCH] [cloud] Show CPU vendor and model in example cloud boot scripts Some problems arise only when running on a specific CPU type (e.g. non-functional timer interrupts as observed in Azure AMD instances). Include the CPU vendor and model within the sample cloud boot scripts, to assist in debugging such problems. Signed-off-by: Michael Brown --- src/config/cloud/aws.ipxe | 1 + src/config/cloud/gce.ipxe | 1 + src/config/cloud/settings.h | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/src/config/cloud/aws.ipxe b/src/config/cloud/aws.ipxe index d857d71d..2c96e388 100644 --- a/src/config/cloud/aws.ipxe +++ b/src/config/cloud/aws.ipxe @@ -1,6 +1,7 @@ #!ipxe echo Amazon EC2 - iPXE boot via user-data +echo CPU: ${cpuvendor} ${cpumodel} ifstat || dhcp || route || diff --git a/src/config/cloud/gce.ipxe b/src/config/cloud/gce.ipxe index 95330d71..88e12b56 100644 --- a/src/config/cloud/gce.ipxe +++ b/src/config/cloud/gce.ipxe @@ -1,6 +1,7 @@ #!ipxe echo Google Compute Engine - iPXE boot via metadata +echo CPU: ${cpuvendor} ${cpumodel} ifstat || dhcp || route || diff --git a/src/config/cloud/settings.h b/src/config/cloud/settings.h index e69de29b..34deeb07 100644 --- a/src/config/cloud/settings.h +++ b/src/config/cloud/settings.h @@ -0,0 +1,4 @@ +/* It can often be useful to know the CPU on which a cloud instance is + * running (e.g. to isolate problems with Azure AMD instances). + */ +#define CPUID_SETTINGS