Home
last modified time | relevance | path

Searched refs:bp_type (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v6.1/kernel/debug/kdb/
Dkdb_bp.c42 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 …]
Dkdb_private.h157 unsigned int bp_type:4; /* Uses hardware register */ member
/Linux-v6.1/kernel/events/
Dhw_breakpoint.c291 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()
592 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument
604 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot()
605 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot()
608 type = find_slot_idx(bp_type); in __reserve_bp_slot()
626 int ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot()
632 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument
639 type = find_slot_idx(bp_type); in __release_bp_slot()
[all …]
/Linux-v6.1/arch/xtensa/kernel/
Dptrace.c371 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 : HW_BREAKPOINT_RW); in ptrace_sethbpregs()
490 attr.bp_type = bp_type; in ptrace_sethbpregs()
Dhw_breakpoint.c55 switch (attr->bp_type) { in hw_breakpoint_arch_parse()
/Linux-v6.1/arch/powerpc/kernel/ptrace/
Dptrace-noadv.c133 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()
/Linux-v6.1/tools/perf/tests/
Dbp_account.c51 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
93 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
Dwp.c45 attr->bp_type = wp_type; in get__perf_event_attr()
63 pr_debug("failed opening event %x\n", attr.bp_type); in __event()
Dbp_signal_overflow.c89 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
Dbp_signal.c112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
Dattr.c136 WRITE_ASS(bp_type, PRIu32); in store_event()
Dsigtrap.c44 .bp_type = HW_BREAKPOINT_RW, in make_event_attr()
/Linux-v6.1/tools/perf/tests/attr/
Dbase-record-spe35 bp_type=*
Dbase-record36 bp_type=0
Dbase-stat36 bp_type=0
Dsystem-wide-dummy45 bp_type=0
/Linux-v6.1/samples/hw_breakpoint/
Ddata_breakpoint.c52 attr.bp_type = HW_BREAKPOINT_W; in hw_break_module_init()
/Linux-v6.1/include/linux/
Dhw_breakpoint.h39 return bp->attr.bp_type; in hw_breakpoint_type()
/Linux-v6.1/tools/testing/selftests/powerpc/ptrace/
Dptrace-perf-hwbreak.c59 attr->bp_type = HW_BREAKPOINT_R; in perf_user_event_attr_set()
71 attr->bp_type = HW_BREAKPOINT_R; in perf_kernel_event_attr_set()
/Linux-v6.1/arch/x86/kernel/
Dptrace.c494 int err, bp_len, bp_type; in ptrace_fill_bp_fields() local
496 err = arch_bp_generic_fields(len, type, &bp_len, &bp_type); in ptrace_fill_bp_fields()
499 attr->bp_type = bp_type; in ptrace_fill_bp_fields()
Dkgdb.c214 bp->attr.bp_type = breakinfo[breakno].type; in kgdb_correct_hw_break()
652 attr.bp_type = HW_BREAKPOINT_W; in kgdb_arch_late()
/Linux-v6.1/arch/sh/kernel/
Dhw_breakpoint.c199 switch (attr->bp_type) { in arch_build_bp_info()
/Linux-v6.1/tools/perf/bench/
Dbreakpoint.c57 attr.bp_type = HW_BREAKPOINT_RW; in breakpoint_setup()
/Linux-v6.1/tools/testing/selftests/perf_events/
Dsigtrap_threads.c58 .bp_type = HW_BREAKPOINT_RW, in make_event_attr()
/Linux-v6.1/tools/perf/util/
Dperf_event_attr_fprintf.c145 PRINT_ATTRf(bp_type, p_unsigned); in perf_event_attr__fprintf()

12