1. 26 2月, 2014 1 次提交
  2. 25 1月, 2014 1 次提交
  3. 04 10月, 2013 1 次提交
  4. 01 5月, 2013 1 次提交
  5. 02 3月, 2013 8 次提交
  6. 05 2月, 2013 1 次提交
  7. 12 1月, 2013 1 次提交
  8. 12 10月, 2012 3 次提交
    • J
      kdb,vt_console: Fix missed data due to pager overruns · 17b572e8
      Jason Wessel 提交于
      It is possible to miss data when using the kdb pager.  The kdb pager
      does not pay attention to the maximum column constraint of the screen
      or serial terminal.  This result is not incrementing the shown lines
      correctly and the pager will print more lines that fit on the screen.
      Obviously that is less than useful when using a VGA console where you
      cannot scroll back.
      
      The pager will now look at the kdb_buffer string to see how many
      characters are printed.  It might not be perfect considering you can
      output ASCII that might move the cursor position, but it is a
      substantially better approximation for viewing dmesg and trace logs.
      
      This also means that the vt screen needs to set the kdb COLUMNS
      variable.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      17b572e8
    • J
      kdb: Fix dmesg/bta scroll to quit with 'q' · d1871b38
      Jason Wessel 提交于
      If you press 'q' the pager should exit instead of printing everything
      from dmesg which can really bog down a 9600 baud serial link.
      
      The same is true for the bta command.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      d1871b38
    • J
      kgdb: Add module event hooks · f30fed10
      Jason Wessel 提交于
      Allow gdb to auto load kernel modules when it is attached,
      which makes it trivially easy to debug module init functions
      or pre-set breakpoints in a kernel module that has not loaded yet.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      f30fed10
  9. 27 9月, 2012 2 次提交
  10. 31 7月, 2012 3 次提交
  11. 22 7月, 2012 3 次提交
  12. 30 3月, 2012 2 次提交
    • J
      kgdb,debug_core: pass the breakpoint struct instead of address and memory · 98b54aa1
      Jason Wessel 提交于
      There is extra state information that needs to be exposed in the
      kgdb_bpt structure for tracking how a breakpoint was installed.  The
      debug_core only uses the the probe_kernel_write() to install
      breakpoints, but this is not enough for all the archs.  Some arch such
      as x86 need to use text_poke() in order to install a breakpoint into a
      read only page.
      
      Passing the kgdb_bpt structure to kgdb_arch_set_breakpoint() and
      kgdb_arch_remove_breakpoint() allows other archs to set the type
      variable which indicates how the breakpoint was installed.
      
      Cc: stable@vger.kernel.org # >= 2.6.36
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      98b54aa1
    • J
      kdb: Fix smatch warning on dbg_io_ops->is_console · 78724b8e
      Jason Wessel 提交于
      The Smatch tool warned that the change from commit b8adde8d
      (kdb: Avoid using dbg_io_ops until it is initialized) should
      add another null check later in the kdb_printf().
      
      It is worth noting that the second use of dbg_io_ops->is_console
      is protected by the KDB_PAGER state variable which would only
      get set when kdb is fully active and initialized.  If we
      ever encounter changes or defects in the KDB_PAGER state
      we do not want to crash the kernel in a kdb_printf/printk.
      
      CC: Tim Bird <tim.bird@am.sony.com>
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      78724b8e
  13. 29 3月, 2012 1 次提交
  14. 23 3月, 2012 6 次提交
  15. 20 3月, 2012 1 次提交
  16. 13 1月, 2012 1 次提交
  17. 12 12月, 2011 1 次提交
  18. 01 11月, 2011 2 次提交
  19. 02 8月, 2011 1 次提交
    • J
      kdb,kgdb: Allow arbitrary kgdb magic knock sequences · 37f86b46
      Jason Wessel 提交于
      The first packet that gdb sends when the kernel is in kdb mode seems
      to change with every release of gdb.  Instead of continuing to add
      many different gdb packets, change kdb to automatically look for any
      thing that looks like a gdb packet.
      
      Example 1 cold start test:
      echo g > /proc/sysrq-trigger
      $D#44+
      
      Example 2 cold start test:
      echo g > /proc/sysrq-trigger
      $3#33
      
      The second one should re-enter kdb's shell right away and is purely a
      test.
      Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
      37f86b46