Skip to content
Commit 13b54a50 authored by Haavard Skinnemoen's avatar Haavard Skinnemoen
Browse files

[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: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
parent 6ea6dd93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment