/kernel/linux/linux-5.10/kernel/debug/kdb/ |
H A D | kdb_bp.c | 42 if (bp->bp_type < 0 || bp->bp_type > 4) in kdb_bptype() 45 return kdb_rwtypes[bp->bp_type]; in kdb_bptype() 56 bp->bp_type = BP_ACCESS_WATCHPOINT; in kdb_parsebp() 58 bp->bp_type = BP_WRITE_WATCHPOINT; in kdb_parsebp() 60 bp->bp_type = BP_HARDWARE_BREAKPOINT; in kdb_parsebp() 97 if (!bp->bp_type) in _kdb_bp_remove() 102 bp->bp_type); in _kdb_bp_remove() 145 if (!bp->bp_type) in _kdb_bp_install() 150 bp->bp_type); in _kdb_bp_install() [all...] |
H A D | kdb_private.h | 158 unsigned int bp_type:4; /* Uses hardware register */ member
|
/kernel/linux/linux-6.6/kernel/debug/kdb/ |
H A D | kdb_bp.c | 42 if (bp->bp_type < 0 || bp->bp_type > 4) in kdb_bptype() 45 return kdb_rwtypes[bp->bp_type]; in kdb_bptype() 56 bp->bp_type = BP_ACCESS_WATCHPOINT; in kdb_parsebp() 58 bp->bp_type = BP_WRITE_WATCHPOINT; in kdb_parsebp() 60 bp->bp_type = BP_HARDWARE_BREAKPOINT; in kdb_parsebp() 97 if (!bp->bp_type) in _kdb_bp_remove() 102 bp->bp_type); in _kdb_bp_remove() 145 if (!bp->bp_type) in _kdb_bp_install() 150 bp->bp_type); in _kdb_bp_install() [all...] |
H A D | kdb_private.h | 157 unsigned int bp_type:4; /* Uses hardware register */ member
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | hw_breakpoint.c | 76 static inline enum bp_type_idx find_slot_idx(u64 bp_type) in find_slot_idx() argument 78 if (bp_type & HW_BREAKPOINT_RW) in find_slot_idx() 113 find_slot_idx(iter->attr.bp_type) == type && in task_bp_pinned() 277 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument 289 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot() 290 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot() 293 type = find_slot_idx(bp_type); in __reserve_bp_slot() 322 ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot() 329 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument 336 type = find_slot_idx(bp_type); in __release_bp_slot() [all...] |
/kernel/linux/linux-6.6/kernel/events/ |
H A D | hw_breakpoint.c | 291 static inline enum bp_type_idx find_slot_idx(u64 bp_type) in find_slot_idx() argument 293 if (bp_type & HW_BREAKPOINT_RW) in find_slot_idx() 339 if (find_slot_idx(iter->attr.bp_type) != type) in task_bp_pinned() 572 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument 583 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot() 584 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot() 587 type = find_slot_idx(bp_type); in __reserve_bp_slot() 601 int ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot() 607 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument 612 type = find_slot_idx(bp_type); in __release_bp_slot() [all...] |
/kernel/linux/linux-5.10/arch/xtensa/kernel/ |
H A D | ptrace.c | 373 if (bp->attr.bp_type & HW_BREAKPOINT_X) { in ptrace_hbptriggered() 397 attr.bp_type = type; in ptrace_hbp_create() 437 if (bp->attr.bp_type & HW_BREAKPOINT_R) in ptrace_gethbpregs() 439 if (bp->attr.bp_type & HW_BREAKPOINT_W) in ptrace_gethbpregs() 458 int bp_type = 0; in ptrace_sethbpregs() local 470 bp_type |= HW_BREAKPOINT_R; in ptrace_sethbpregs() 472 bp_type |= HW_BREAKPOINT_W; in ptrace_sethbpregs() 475 bp_type = HW_BREAKPOINT_X; in ptrace_sethbpregs() 480 bp_type ? bp_type in ptrace_sethbpregs() [all...] |
/kernel/linux/linux-6.6/arch/xtensa/kernel/ |
H A D | ptrace.c | 371 if (bp->attr.bp_type & HW_BREAKPOINT_X) { in ptrace_hbptriggered() 395 attr.bp_type = type; in ptrace_hbp_create() 435 if (bp->attr.bp_type & HW_BREAKPOINT_R) in ptrace_gethbpregs() 437 if (bp->attr.bp_type & HW_BREAKPOINT_W) in ptrace_gethbpregs() 456 int bp_type = 0; in ptrace_sethbpregs() local 468 bp_type |= HW_BREAKPOINT_R; in ptrace_sethbpregs() 470 bp_type |= HW_BREAKPOINT_W; in ptrace_sethbpregs() 473 bp_type = HW_BREAKPOINT_X; in ptrace_sethbpregs() 478 bp_type ? bp_type in ptrace_sethbpregs() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A D | perf-hwbreak.c | 54 attr.bp_type = HW_BREAKPOINT_R; in breakpoint_test() 101 attr.bp_type = readwriteflag; in runtestsingle() 175 attr.bp_type = HW_BREAKPOINT_RW; in runtest_dar_outside()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | bp_account.c | 38 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event() 80 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
|
H A D | wp.c | 42 attr->bp_type = wp_type; in get__perf_event_attr() 60 pr_debug("failed opening event %x\n", attr.bp_type); in __event()
|
H A D | bp_signal_overflow.c | 84 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
|
H A D | bp_signal.c | 112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
|
H A D | attr.c | 135 WRITE_ASS(bp_type, PRIu32); in store_event()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | bp_account.c | 51 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event() 93 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
|
H A D | wp.c | 45 attr->bp_type = wp_type; in get__perf_event_attr() 64 pr_debug("failed opening event %x\n", attr.bp_type); in __event()
|
H A D | bp_signal_overflow.c | 89 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
|
H A D | attr.c | 136 WRITE_ASS(bp_type, PRIu32); in store_event()
|
H A D | bp_signal.c | 112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-noadv.c | 137 arch_bp_generic_fields(hw_brk.type, &attr.bp_type); in ptrace_set_debugreg() 156 &attr.bp_type); in ptrace_set_debugreg() 245 arch_bp_generic_fields(brk.type, &attr.bp_type); in ppc_set_hwdebug()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-noadv.c | 133 arch_bp_generic_fields(hw_brk.type, &attr.bp_type); in ptrace_set_debugreg() 152 &attr.bp_type); in ptrace_set_debugreg() 241 arch_bp_generic_fields(brk.type, &attr.bp_type); in ppc_set_hwdebug()
|
/kernel/linux/linux-5.10/samples/hw_breakpoint/ |
H A D | data_breakpoint.c | 52 attr.bp_type = HW_BREAKPOINT_W; in hw_break_module_init()
|
/kernel/linux/linux-6.6/samples/hw_breakpoint/ |
H A D | data_breakpoint.c | 52 attr.bp_type = HW_BREAKPOINT_W; in hw_break_module_init()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | hw_breakpoint.h | 39 return bp->attr.bp_type; in hw_breakpoint_type()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | hw_breakpoint.h | 49 return bp->attr.bp_type; in hw_breakpoint_type()
|