• 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
ocd.c 3.72 KB