1. 25 Jan, 2008 4 commits
    • Haavard Skinnemoen's avatar
      [AVR32] Enable debugging only when needed · 13b54a50
      Haavard Skinnemoen authored
      Keep track of processes being debugged (including the kernel itself)
      and turn the OCD system on and off as appropriate. Since enabling
      debugging turns off some optimizations in the CPU core, this fixes the
      issue that enabling KProbes support or simply running a program under
      gdbserver will reduce system performance significantly until the next
      reboot.
      
      The CPU performance will still be reduced for all processes while a
      process is being debugged, but this is a lot better than reducing the
      performance forever.
      Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
      13b54a50
    • Haavard Skinnemoen's avatar
      ptrace: Call arch_ptrace_attach() when request=PTRACE_TRACEME · 6ea6dd93
      Haavard Skinnemoen authored
      arch_ptrace_attach() is a hook that allows the architecture to do
      book-keeping after a ptrace attach. This patch adds a call to this
      hook when handling a PTRACE_TRACEME request as well.
      
      Currently only one architecture, m32r, implements this hook. When
      called, it initializes a number of debug trap slots in the ptraced
      task's thread struct, and it looks to me like this is the right thing
      to do after a PTRACE_TRACEME request as well, not only after
      PTRACE_ATTACH. Please correct me if I'm wrong.
      
      I want to use this hook on AVR32 to turn the debugging hardware on
      when a process is actually being debugged and keep it off otherwise.
      To be able to do this, I need to intercept PTRACE_TRACEME and
      PTRACE_ATTACH, as well as PTRACE_DETACH and thread exit. The latter
      two can be handled by existing hooks.
      Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
      6ea6dd93
    • Haavard Skinnemoen's avatar
      [AVR32] Remove redundant try_to_freeze() call from do_signal() · 7f0f616b
      Haavard Skinnemoen authored
      get_signal_to_deliver() will call try_to_freeze(), so there's no point
      in do_signal() doing it as well.
      Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
      7f0f616b
    • Haavard Skinnemoen's avatar
      [AVR32] Drop GFP_COMP for DMA memory allocations · 3611553e
      Haavard Skinnemoen authored
      dma_alloc_coherent wants to split pages after allocation in order to
      reduce the memory footprint. This does not work well with GFP_COMP
      pages, so drop this flag before allocation.
      
      This patch was forward-ported from BSP 2.0
      Signed-off-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
      3611553e
  2. 24 Jan, 2008 32 commits
  3. 23 Jan, 2008 4 commits