linux/kernel/debug/kdb
Daniel Thompson 771910f719 kernel: debug: Centralize dbg_[de]activate_sw_breakpoints
During debug trap execution we expect dbg_deactivate_sw_breakpoints()
to be paired with an dbg_activate_sw_breakpoint(). Currently although
the calls are paired correctly they are needlessly smeared across three
different functions. Worse this also results in code to drive polled I/O
being called with breakpoints activated which, in turn, needlessly
increases the set of functions that will recursively trap if breakpointed.

Fix this by moving the activation of breakpoints into the debug core.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200927211531.1380577-4-daniel.thompson@linaro.org
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2020-10-01 14:23:45 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kdb_bp.c kgdb: Honour the kprobe blocklist when setting breakpoints 2020-09-28 12:14:08 +01:00
kdb_bt.c kdb: Use newer api for tasklist scanning 2020-09-08 14:36:46 +01:00
kdb_cmds kdb: cleanup unused variables missed in the original kdb merge 2011-08-01 13:23:58 -05:00
kdb_debugger.c kernel: debug: Centralize dbg_[de]activate_sw_breakpoints 2020-10-01 14:23:45 +01:00
kdb_io.c kdb: remove unnecessary null check of dbg_io_ops 2020-09-08 14:34:40 +01:00
kdb_keyboard.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
kdb_main.c kdb: Use newer api for tasklist scanning 2020-09-08 14:36:46 +01:00
kdb_private.h kdb: Use newer api for tasklist scanning 2020-09-08 14:36:46 +01:00
kdb_support.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Makefile kdb: Get rid of broken attempt to print CCVERSION in kdb summary 2019-05-12 09:50:43 +01:00