| /Linux-v5.4/kernel/events/ |
| 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() 268 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument 279 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot() 280 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot() 283 type = find_slot_idx(bp_type); in __reserve_bp_slot() 308 ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot() 315 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument 320 type = find_slot_idx(bp_type); in __release_bp_slot() [all …]
|
| /Linux-v5.4/kernel/debug/kdb/ |
| 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() 156 if (!bp->bp_type) { in _kdb_bp_install() [all …]
|
| D | kdb_private.h | 158 unsigned int bp_type:4; /* Uses hardware register */ member
|
| /Linux-v5.4/arch/xtensa/kernel/ |
| D | ptrace.c | 372 if (bp->attr.bp_type & HW_BREAKPOINT_X) { in ptrace_hbptriggered() 396 attr.bp_type = type; in ptrace_hbp_create() 436 if (bp->attr.bp_type & HW_BREAKPOINT_R) in ptrace_gethbpregs() 438 if (bp->attr.bp_type & HW_BREAKPOINT_W) in ptrace_gethbpregs() 457 int bp_type = 0; in ptrace_sethbpregs() local 469 bp_type |= HW_BREAKPOINT_R; in ptrace_sethbpregs() 471 bp_type |= HW_BREAKPOINT_W; in ptrace_sethbpregs() 474 bp_type = HW_BREAKPOINT_X; in ptrace_sethbpregs() 479 bp_type ? bp_type : HW_BREAKPOINT_RW); in ptrace_sethbpregs() 491 attr.bp_type = bp_type; in ptrace_sethbpregs()
|
| D | hw_breakpoint.c | 55 switch (attr->bp_type) { in hw_breakpoint_arch_parse()
|
| /Linux-v5.4/tools/testing/selftests/powerpc/ptrace/ |
| D | perf-hwbreak.c | 54 attr.bp_type = HW_BREAKPOINT_R; in breakpoint_test() 101 attr.bp_type = readwriteflag; in runtestsingle()
|
| /Linux-v5.4/tools/perf/tests/ |
| D | bp_account.c | 42 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event() 84 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
|
| 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()
|
| D | bp_signal_overflow.c | 84 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
|
| D | attr.c | 135 WRITE_ASS(bp_type, PRIu32); in store_event()
|
| D | bp_signal.c | 117 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
|
| D | parse-events.c | 159 evsel->core.attr.bp_type); in test__checkevent_breakpoint() 173 HW_BREAKPOINT_X == evsel->core.attr.bp_type); in test__checkevent_breakpoint_x() 187 HW_BREAKPOINT_R == evsel->core.attr.bp_type); in test__checkevent_breakpoint_r() 202 HW_BREAKPOINT_W == evsel->core.attr.bp_type); in test__checkevent_breakpoint_w() 217 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->core.attr.bp_type); in test__checkevent_breakpoint_rw() 1260 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len() 1275 evsel->core.attr.bp_type); in test__checkevent_breakpoint_len_w()
|
| /Linux-v5.4/tools/perf/tests/attr/ |
| D | base-record | 36 bp_type=0
|
| D | base-stat | 36 bp_type=0
|
| /Linux-v5.4/samples/hw_breakpoint/ |
| D | data_breakpoint.c | 48 attr.bp_type = HW_BREAKPOINT_W | HW_BREAKPOINT_R; in hw_break_module_init()
|
| /Linux-v5.4/arch/powerpc/kernel/ |
| D | hw_breakpoint.c | 142 if (attr->bp_type & HW_BREAKPOINT_R) in hw_breakpoint_arch_parse() 144 if (attr->bp_type & HW_BREAKPOINT_W) in hw_breakpoint_arch_parse()
|
| /Linux-v5.4/include/linux/ |
| D | hw_breakpoint.h | 39 return bp->attr.bp_type; in hw_breakpoint_type()
|
| /Linux-v5.4/arch/x86/kernel/ |
| D | ptrace.c | 518 int err, bp_len, bp_type; in ptrace_fill_bp_fields() local 520 err = arch_bp_generic_fields(len, type, &bp_len, &bp_type); in ptrace_fill_bp_fields() 523 attr->bp_type = bp_type; in ptrace_fill_bp_fields()
|
| D | kgdb.c | 214 bp->attr.bp_type = breakinfo[breakno].type; in kgdb_correct_hw_break() 651 attr.bp_type = HW_BREAKPOINT_W; in kgdb_arch_late()
|
| D | hw_breakpoint.c | 238 switch (attr->bp_type) { in arch_build_bp_info()
|
| /Linux-v5.4/arch/sh/kernel/ |
| D | hw_breakpoint.c | 199 switch (attr->bp_type) { in arch_build_bp_info()
|
| /Linux-v5.4/tools/perf/util/ |
| D | perf_event_attr_fprintf.c | 136 PRINT_ATTRf(bp_type, p_unsigned); in perf_event_attr__fprintf()
|
| /Linux-v5.4/drivers/misc/ |
| D | kgdbts.c | 220 static void break_helper(char *bp_type, char *arg, unsigned long vaddr) in break_helper() argument 229 sprintf(scratch_buf, "%s,%lx,%i", bp_type, addr, in break_helper()
|
| /Linux-v5.4/arch/arm/kernel/ |
| D | ptrace.c | 451 attr.bp_type = type; in ptrace_hbp_create() 559 attr.bp_type = gen_type; in ptrace_sethbpregs()
|
| /Linux-v5.4/tools/include/uapi/linux/ |
| D | perf_event.h | 385 __u32 bp_type; member
|