diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-11-27 13:50:45 +0100 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-01-25 08:31:39 +0100 |
commit | 13b54a50525a9685065684e1e11258d27dd27bdf (patch) | |
tree | 5cc2dbceb4efff1810e5425617ce9bc850e1e8cb /arch/avr32/kernel/Makefile | |
parent | ptrace: Call arch_ptrace_attach() when request=PTRACE_TRACEME (diff) | |
download | linux-13b54a50525a9685065684e1e11258d27dd27bdf.tar.xz linux-13b54a50525a9685065684e1e11258d27dd27bdf.zip |
[AVR32] Enable debugging only when needed
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: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/kernel/Makefile')
-rw-r--r-- | arch/avr32/kernel/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/kernel/Makefile b/arch/avr32/kernel/Makefile index 2d6d48f35f69..bc224a4e39fe 100644 --- a/arch/avr32/kernel/Makefile +++ b/arch/avr32/kernel/Makefile @@ -6,7 +6,7 @@ extra-y := head.o vmlinux.lds obj-$(CONFIG_SUBARCH_AVR32B) += entry-avr32b.o obj-y += syscall_table.o syscall-stubs.o irq.o -obj-y += setup.o traps.o semaphore.o ptrace.o +obj-y += setup.o traps.o semaphore.o ocd.o ptrace.o obj-y += signal.o sys_avr32.o process.o time.o obj-y += init_task.o switch_to.o cpu.o obj-$(CONFIG_MODULES) += module.o avr32_ksyms.o |