/Linux-v5.10/arch/x86/kernel/ |
D | hw_breakpoint.c | 307 bp_end = attr->bp_addr + attr->bp_len - 1; in arch_build_bp_info() 348 if (attr->bp_len == sizeof(long)) { in arch_build_bp_info() 358 switch (attr->bp_len) { in arch_build_bp_info() 375 if (!is_power_of_2(attr->bp_len)) in arch_build_bp_info() 377 if (attr->bp_addr & (attr->bp_len - 1)) in arch_build_bp_info() 390 hw->mask = attr->bp_len - 1; in arch_build_bp_info()
|
D | ptrace.c | 495 int err, bp_len, bp_type; in ptrace_fill_bp_fields() local 497 err = arch_bp_generic_fields(len, type, &bp_len, &bp_type); in ptrace_fill_bp_fields() 499 attr->bp_len = bp_len; in ptrace_fill_bp_fields()
|
D | kgdb.c | 213 bp->attr.bp_len = breakinfo[breakno].len; in kgdb_correct_hw_break() 651 attr.bp_len = HW_BREAKPOINT_LEN_1; in kgdb_arch_late()
|
/Linux-v5.10/tools/testing/selftests/powerpc/ptrace/ |
D | perf-hwbreak.c | 57 attr.bp_len = len; in breakpoint_test() 103 attr.bp_len = sizeof(int); in runtestsingle() 105 attr.bp_len = DAWR_LENGTH_MAX; in runtestsingle() 178 attr.bp_len = 4; in runtest_dar_outside()
|
/Linux-v5.10/arch/powerpc/kernel/ptrace/ |
D | ptrace-noadv.c | 136 attr.bp_len = DABR_MAX_LEN; in ptrace_set_debugreg() 154 attr.bp_len = DABR_MAX_LEN; in ptrace_set_debugreg() 244 attr.bp_len = len; in ppc_set_hwdebug()
|
/Linux-v5.10/arch/xtensa/kernel/ |
D | ptrace.c | 396 attr.bp_len = 1; in ptrace_hbp_create() 435 user_data[1] = bp->attr.disabled ? 0 : bp->attr.bp_len; in ptrace_gethbpregs() 491 attr.bp_len = user_data[1] & ~(DBREAKC_LOAD_MASK | DBREAKC_STOR_MASK); in ptrace_sethbpregs() 493 attr.disabled = !attr.bp_len; in ptrace_sethbpregs()
|
D | hw_breakpoint.c | 73 hw->len = attr->bp_len; in hw_breakpoint_arch_parse()
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | hw_breakpoint.c | 153 bp1_eaddr = ALIGN(bp1->attr.bp_addr + bp1->attr.bp_len, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap() 155 bp2_eaddr = ALIGN(bp2->attr.bp_addr + bp2->attr.bp_len, HW_BREAKPOINT_SIZE); in bp_addr_range_overlap() 446 if (!bp || !attr->bp_len) in hw_breakpoint_arch_parse() 464 hw->len = attr->bp_len; in hw_breakpoint_arch_parse()
|
/Linux-v5.10/samples/hw_breakpoint/ |
D | data_breakpoint.c | 51 attr.bp_len = HW_BREAKPOINT_LEN_4; in hw_break_module_init()
|
/Linux-v5.10/tools/perf/tests/ |
D | bp_signal_overflow.c | 86 pe.bp_len = sizeof(long); in test__bp_signal_overflow()
|
D | bp_account.c | 40 attr->bp_len = sizeof(long); in __event()
|
D | bp_signal.c | 114 pe.bp_len = sizeof(long); in __event()
|
D | wp.c | 44 attr->bp_len = wp_len; in get__perf_event_attr()
|
D | parse-events.c | 161 evsel->core.attr.bp_len); in test__checkevent_breakpoint() 174 TEST_ASSERT_VAL("wrong bp_len", sizeof(long) == evsel->core.attr.bp_len); in test__checkevent_breakpoint_x() 189 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_r() 204 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_w() 219 HW_BREAKPOINT_LEN_4 == evsel->core.attr.bp_len); in test__checkevent_breakpoint_rw() 1336 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len() 1351 evsel->core.attr.bp_len); in test__checkevent_breakpoint_len_w()
|
/Linux-v5.10/include/linux/ |
D | hw_breakpoint.h | 44 return bp->attr.bp_len; in hw_breakpoint_len()
|
/Linux-v5.10/kernel/events/ |
D | hw_breakpoint.c | 472 to->bp_len = from->bp_len; in hw_breakpoint_copy_attr()
|
/Linux-v5.10/arch/sh/kernel/ |
D | hw_breakpoint.c | 181 switch (attr->bp_len) { in arch_build_bp_info()
|
D | ptrace_32.c | 87 attr.bp_len = HW_BREAKPOINT_LEN_2; in set_single_step()
|
/Linux-v5.10/tools/perf/util/ |
D | perf_event_attr_fprintf.c | 141 PRINT_ATTRn("{ bp_len, config2 }", bp_len, p_hex); in perf_event_attr__fprintf()
|
/Linux-v5.10/arch/arm/kernel/ |
D | ptrace.c | 449 attr.bp_len = HW_BREAKPOINT_LEN_4; in ptrace_hbp_create() 557 attr.bp_len = gen_len; in ptrace_sethbpregs()
|
D | hw_breakpoint.c | 535 switch (attr->bp_len) { in arch_build_bp_info()
|
/Linux-v5.10/include/uapi/linux/ |
D | perf_event.h | 402 __u64 bp_len; member
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | perf_event.h | 402 __u64 bp_len; member
|
/Linux-v5.10/arch/arm64/kernel/ |
D | hw_breakpoint.c | 435 switch (attr->bp_len) { in arch_build_bp_info()
|
D | ptrace.c | 313 attr.bp_len = HW_BREAKPOINT_LEN_4; in ptrace_hbp_create() 355 attr->bp_len = len; in ptrace_hbp_fill_attr_ctrl()
|