diff mbox

klog: data.json: Add klog checking for kernel NUMA errors from drivers/acpi/numa.c

Message ID 1467387732-13497-1-git-send-email-colin.king@canonical.com
State Accepted
Headers show

Commit Message

Colin Ian King July 1, 2016, 3:42 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Extend klog sanity checking to ACPI NUMA kernel messages

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 data/klog.json | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Comments

Alex Hung July 6, 2016, 1:49 a.m. UTC | #1
On 2016-07-01 11:42 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Extend klog sanity checking to ACPI NUMA kernel messages
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   data/klog.json | 42 ++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 42 insertions(+)
>
> diff --git a/data/klog.json b/data/klog.json
> index 6926b72..187d52b 100644
> --- a/data/klog.json
> +++ b/data/klog.json
> @@ -3,6 +3,48 @@
>    [
>     {
>      "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: SRAT not used",
> +   "advice": "The NUMA affinity configuration could not be determined because of errors in the ACPI SRAT table",
> +   "label": "KlogAcpiSratNotUsed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_MEDIUM",
> +   "pattern": "SRAT: Failed to mark hotplug range",
> +   "advice": "A hotpluggable memory range failed to be marked as hotpluggable. This generally occurs because the memory range is invalid and may overlap other memory regions.",
> +   "label": "KlogAcpiSratNotUsed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Unexpected header length",
> +   "advice": "The NUMA affinity configuration could not be determined because the ACPI SRAT table header was the incorrect size.",
> +   "label": "KlogAcpiSratBadHeader"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Too many proximity domains",
> +   "advice": "The NUMA affinity configuration failed because the number of NUMA nodes is greater than the system defined hard limit of 1 << CONFIG_NODES_SHIFT.  The kernel config value for CONFIG_NODES_SHIFT needs to be increased.",
> +   "label": "KlogAcpiSratTooManyNodes"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Failed to add memblk to node",
> +   "advice": "The per-architecture NUMA implementation was unable to add a NUMA memory block to the memory information data structures. This may occur if the node id is more than the maximum system configured number of NUMA nodes or all the allowed memory block ranges are used.",
> +   "label": "KlogAcpiSratMemBlkAddFailed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SLIT table looks invalid. Not used",
> +   "advice": "The ACPI SLIT (System Locality Distance Information) is not parsable or looks suspect, NUMA affinity cannot be configured.",
> +   "label": "KlogAcpiSratMemBlkAddFailed"
> +  },
> +  {
> +   "compare_mode": "string",
>      "log_level": "LOG_LEVEL_MEDIUM",
>      "pattern": "While parsing/handling command line",
>      "advice": "The ACPI debugger failed to parse the debug command",
>

Acked-by: Alex Hung <alex.hung@canonical.com>
Ivan Hu July 7, 2016, 2:36 a.m. UTC | #2
On 2016年07月01日 23:42, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Extend klog sanity checking to ACPI NUMA kernel messages
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   data/klog.json | 42 ++++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 42 insertions(+)
>
> diff --git a/data/klog.json b/data/klog.json
> index 6926b72..187d52b 100644
> --- a/data/klog.json
> +++ b/data/klog.json
> @@ -3,6 +3,48 @@
>    [
>     {
>      "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: SRAT not used",
> +   "advice": "The NUMA affinity configuration could not be determined because of errors in the ACPI SRAT table",
> +   "label": "KlogAcpiSratNotUsed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_MEDIUM",
> +   "pattern": "SRAT: Failed to mark hotplug range",
> +   "advice": "A hotpluggable memory range failed to be marked as hotpluggable. This generally occurs because the memory range is invalid and may overlap other memory regions.",
> +   "label": "KlogAcpiSratNotUsed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Unexpected header length",
> +   "advice": "The NUMA affinity configuration could not be determined because the ACPI SRAT table header was the incorrect size.",
> +   "label": "KlogAcpiSratBadHeader"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Too many proximity domains",
> +   "advice": "The NUMA affinity configuration failed because the number of NUMA nodes is greater than the system defined hard limit of 1 << CONFIG_NODES_SHIFT.  The kernel config value for CONFIG_NODES_SHIFT needs to be increased.",
> +   "label": "KlogAcpiSratTooManyNodes"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SRAT: Failed to add memblk to node",
> +   "advice": "The per-architecture NUMA implementation was unable to add a NUMA memory block to the memory information data structures. This may occur if the node id is more than the maximum system configured number of NUMA nodes or all the allowed memory block ranges are used.",
> +   "label": "KlogAcpiSratMemBlkAddFailed"
> +  },
> +  {
> +   "compare_mode": "string",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "pattern": "SLIT table looks invalid. Not used",
> +   "advice": "The ACPI SLIT (System Locality Distance Information) is not parsable or looks suspect, NUMA affinity cannot be configured.",
> +   "label": "KlogAcpiSratMemBlkAddFailed"
> +  },
> +  {
> +   "compare_mode": "string",
>      "log_level": "LOG_LEVEL_MEDIUM",
>      "pattern": "While parsing/handling command line",
>      "advice": "The ACPI debugger failed to parse the debug command",
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>
diff mbox

Patch

diff --git a/data/klog.json b/data/klog.json
index 6926b72..187d52b 100644
--- a/data/klog.json
+++ b/data/klog.json
@@ -3,6 +3,48 @@ 
  [ 
   {
    "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "SRAT: SRAT not used",
+   "advice": "The NUMA affinity configuration could not be determined because of errors in the ACPI SRAT table",
+   "label": "KlogAcpiSratNotUsed"
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "SRAT: Failed to mark hotplug range",
+   "advice": "A hotpluggable memory range failed to be marked as hotpluggable. This generally occurs because the memory range is invalid and may overlap other memory regions.",
+   "label": "KlogAcpiSratNotUsed"
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "SRAT: Unexpected header length",
+   "advice": "The NUMA affinity configuration could not be determined because the ACPI SRAT table header was the incorrect size.",
+   "label": "KlogAcpiSratBadHeader"
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "SRAT: Too many proximity domains",
+   "advice": "The NUMA affinity configuration failed because the number of NUMA nodes is greater than the system defined hard limit of 1 << CONFIG_NODES_SHIFT.  The kernel config value for CONFIG_NODES_SHIFT needs to be increased.",
+   "label": "KlogAcpiSratTooManyNodes"
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "SRAT: Failed to add memblk to node",
+   "advice": "The per-architecture NUMA implementation was unable to add a NUMA memory block to the memory information data structures. This may occur if the node id is more than the maximum system configured number of NUMA nodes or all the allowed memory block ranges are used.",
+   "label": "KlogAcpiSratMemBlkAddFailed"
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "SLIT table looks invalid. Not used",
+   "advice": "The ACPI SLIT (System Locality Distance Information) is not parsable or looks suspect, NUMA affinity cannot be configured.",
+   "label": "KlogAcpiSratMemBlkAddFailed"
+  },
+  {
+   "compare_mode": "string",
    "log_level": "LOG_LEVEL_MEDIUM",
    "pattern": "While parsing/handling command line",
    "advice": "The ACPI debugger failed to parse the debug command",