Patchwork data: klog.json: Add support for the APM driver kernel messages

login
register
mail settings
Submitter Colin King
Date Nov. 6, 2012, 11:49 a.m.
Message ID <1352202561-21248-1-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/197469/
State Accepted
Headers show

Comments

Colin King - Nov. 6, 2012, 11:49 a.m.
From: Colin Ian King <colin.king@canonical.com>

Add support to check for messages in arch/x86/kernel/apm_32.c

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 data/klog.json |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
Keng-Yu Lin - Nov. 8, 2012, 3:04 a.m.
On Tue, Nov 6, 2012 at 12:49 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Add support to check for messages in arch/x86/kernel/apm_32.c
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  data/klog.json |   40 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>
> diff --git a/data/klog.json b/data/klog.json
> index 27d1211..766d115 100644
> --- a/data/klog.json
> +++ b/data/klog.json
> @@ -80,6 +80,46 @@
>     "compare_mode": "regex",
>     "log_level": "LOG_LEVEL_HIGH",
>     "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*an event queue overflowed",
> +   "advice": "More then 20 APM events were queued up which is unexpected.  The queue was not being drained quickly by a reading process (perhaps it is not running).",
> +   "label": "KlogApmEventQueueOverflow"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*passed bad filp",
> +   "advice": "A read of the APM events was performed by a reading process with an unrecognised file pointer. This should not happen.",
> +   "label": "KlogApmReadBadFileptr"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*filp not in user list",
> +   "advice": "An attempt to release a APM reader occurred using an unrecognised file pointer. This should not happen.",
> +   "label": "KlogApmReleaseBadFileptr"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*cannot allocate struct of size %d bytes",
> +   "advice": "An attempt to open failed, out of memory. APM events cannot be read.",
> +   "label": "KlogApmOpenNoMemory"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*disabled - Unable to start kernel thread",
> +   "advice": "Cannot start kernel APM thread, APM handling will be disabled.",
> +   "label": "KlogApmKernelThreadFailed"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
>     "pattern": "PnPBIOS.*ESCD size reported by BIOS escd_info call is too great",
>     "advice": "The ESCD size was greater than a sane size of 32K.",
>     "label": "KlogPnpBiosEscdSize"
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Alex Hung - Nov. 21, 2012, 3:19 a.m.
On 11/06/2012 07:49 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Add support to check for messages in arch/x86/kernel/apm_32.c
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   data/klog.json |   40 ++++++++++++++++++++++++++++++++++++++++
>   1 file changed, 40 insertions(+)
>
> diff --git a/data/klog.json b/data/klog.json
> index 27d1211..766d115 100644
> --- a/data/klog.json
> +++ b/data/klog.json
> @@ -80,6 +80,46 @@
>      "compare_mode": "regex",
>      "log_level": "LOG_LEVEL_HIGH",
>      "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*an event queue overflowed",
> +   "advice": "More then 20 APM events were queued up which is unexpected.  The queue was not being drained quickly by a reading process (perhaps it is not running).",
> +   "label": "KlogApmEventQueueOverflow"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*passed bad filp",
> +   "advice": "A read of the APM events was performed by a reading process with an unrecognised file pointer. This should not happen.",
> +   "label": "KlogApmReadBadFileptr"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*filp not in user list",
> +   "advice": "An attempt to release a APM reader occurred using an unrecognised file pointer. This should not happen.",
> +   "label": "KlogApmReleaseBadFileptr"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*cannot allocate struct of size %d bytes",
> +   "advice": "An attempt to open failed, out of memory. APM events cannot be read.",
> +   "label": "KlogApmOpenNoMemory"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
> +   "pattern": "apm.*disabled - Unable to start kernel thread",
> +   "advice": "Cannot start kernel APM thread, APM handling will be disabled.",
> +   "label": "KlogApmKernelThreadFailed"
> +  },
> +  {
> +   "compare_mode": "regex",
> +   "log_level": "LOG_LEVEL_HIGH",
> +   "tag": "FWTS_TAG_ACPI",
>      "pattern": "PnPBIOS.*ESCD size reported by BIOS escd_info call is too great",
>      "advice": "The ESCD size was greater than a sane size of 32K.",
>      "label": "KlogPnpBiosEscdSize"
>
Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

diff --git a/data/klog.json b/data/klog.json
index 27d1211..766d115 100644
--- a/data/klog.json
+++ b/data/klog.json
@@ -80,6 +80,46 @@ 
    "compare_mode": "regex",
    "log_level": "LOG_LEVEL_HIGH",
    "tag": "FWTS_TAG_ACPI",
+   "pattern": "apm.*an event queue overflowed",
+   "advice": "More then 20 APM events were queued up which is unexpected.  The queue was not being drained quickly by a reading process (perhaps it is not running).",
+   "label": "KlogApmEventQueueOverflow"
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "tag": "FWTS_TAG_ACPI",
+   "pattern": "apm.*passed bad filp",
+   "advice": "A read of the APM events was performed by a reading process with an unrecognised file pointer. This should not happen.",
+   "label": "KlogApmReadBadFileptr"
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "tag": "FWTS_TAG_ACPI",
+   "pattern": "apm.*filp not in user list",
+   "advice": "An attempt to release a APM reader occurred using an unrecognised file pointer. This should not happen.",
+   "label": "KlogApmReleaseBadFileptr"
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "tag": "FWTS_TAG_ACPI",
+   "pattern": "apm.*cannot allocate struct of size %d bytes",
+   "advice": "An attempt to open failed, out of memory. APM events cannot be read.",
+   "label": "KlogApmOpenNoMemory"
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "tag": "FWTS_TAG_ACPI",
+   "pattern": "apm.*disabled - Unable to start kernel thread",
+   "advice": "Cannot start kernel APM thread, APM handling will be disabled.",
+   "label": "KlogApmKernelThreadFailed"
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "tag": "FWTS_TAG_ACPI",
    "pattern": "PnPBIOS.*ESCD size reported by BIOS escd_info call is too great",
    "advice": "The ESCD size was greater than a sane size of 32K.",
    "label": "KlogPnpBiosEscdSize"