1. 23 10月, 2010 3 次提交
    • T
      Dynamic Debug: Initialize dynamic debug earlier via arch_initcall · 6a5c083d
      Thomas Renninger 提交于
      Having the ddebug_query= boot parameter it makes sense to set up
      dynamic debug as soon as possible.
      
      I expect sysfs files cannot be set up via an arch_initcall, because
      this one is even before fs_initcall. Therefore I splitted the
      dynamic_debug_init function into an early one and a later one providing
      /sys/../dynamic_debug/control file.
      
      Possibly dynamic_debug can be initialized even earlier, not sure whether
      this still makes sense then. I picked up arch_initcall as it covers
      quite a lot already.
      
      Dynamic debug needs to allocate memory, therefore it's not easily possible to
      set it up even before the command line gets parsed.
      Therefore the boot param query string is stored in a temp string which is
      applied when dynamic debug gets set up.
      
      This has been tested with ddebug_query="file ec.c +p"
      and I could retrieve pr_debug() messages early at boot during ACPI setup:
      ACPI: EC: Look up EC in DSDT
      ACPI: EC: ---> status = 0x08
      ACPI: EC: transaction start
      ACPI: EC: <--- command = 0x80
      ACPI: EC: ~~~> interrupt
      ACPI: EC: ---> status = 0x08
      ACPI: EC: <--- data = 0xa4
      ...
      ACPI: Interpreter enabled
      ACPI: (supports S0 S3 S4 S5)
      ACPI: Using IOAPIC for interrupt routing
      ACPI: EC: ---> status = 0x00
      ACPI: EC: transaction start
      ACPI: EC: <--- command = 0x80
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Acked-by: jbaron@redhat.com
      Acked-by: NPekka Enberg <penberg@cs.helsinki.fi>
      CC: linux-acpi@vger.kernel.org
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6a5c083d
    • T
      Dynamic Debug: Introduce ddebug_query= boot parameter · a648ec05
      Thomas Renninger 提交于
      Dynamic debug lacks the ability to enable debug messages at boot time.
      One could patch initramfs or service startup scripts to write to
      /sys/../dynamic_debug/control, but this sucks.
      
      This patch makes it possible to pass a query in the same format one can
      write to /sys/../dynamic_debug/control via boot param.
      When dynamic debug gets initialized, this query will automatically be
      applied.
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Acked-by: jbaron@redhat.com
      Acked-by: NPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a648ec05
    • T
      Dynamic Debug: Split out query string parsing/setup from proc_write · fd89cfb8
      Thomas Renninger 提交于
      The parsing and applying of dynamic debug strings is not only useful for
      /sys/../dynamic_debug/control write access, but can also be used for
      boot parameter parsing.
      The boot parameter is introduced in a follow up patch.
      Signed-off-by: NThomas Renninger <trenn@suse.de>
      Acked-by: jbaron@redhat.com
      Acked-by: NPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fd89cfb8
  2. 21 10月, 2010 5 次提交
  3. 20 10月, 2010 7 次提交
  4. 19 10月, 2010 6 次提交
  5. 18 10月, 2010 14 次提交
  6. 17 10月, 2010 2 次提交
  7. 16 10月, 2010 3 次提交