Home
last modified time | relevance | path

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

12

/linux/kernel/debug/kdb/
H A Dkdb_bp.c39 if (bp->bp_type < 0 || bp->bp_type > 4) in kdb_bptype()
42 return kdb_rwtypes[bp->bp_type]; in kdb_bptype()
53 bp->bp_type = BP_ACCESS_WATCHPOINT; in kdb_parsebp()
55 bp->bp_type = BP_WRITE_WATCHPOINT; in kdb_parsebp()
57 bp->bp_type = BP_HARDWARE_BREAKPOINT; in kdb_parsebp()
94 if (!bp->bp_type) in _kdb_bp_remove()
99 bp->bp_type); in _kdb_bp_remove()
142 if (!bp->bp_type) in _kdb_bp_install()
147 bp->bp_type); in _kdb_bp_install()
153 if (!bp->bp_type) { in _kdb_bp_install()
[all …]
H A Dkdb_private.h159 unsigned int bp_type:4; /* Uses hardware register */ member
/linux/kernel/events/
H A Dhw_breakpoint.c292 static inline enum bp_type_idx find_slot_idx(u64 bp_type) in find_slot_idx() argument
294 if (bp_type & HW_BREAKPOINT_RW) in find_slot_idx()
340 if (find_slot_idx(iter->attr.bp_type) != type) in task_bp_pinned()
573 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument
584 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot()
585 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot()
588 type = find_slot_idx(bp_type); in __reserve_bp_slot()
602 int ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot()
608 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument
613 type = find_slot_idx(bp_type); in __release_bp_slot()
[all …]
/linux/arch/xtensa/kernel/
H A 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()
/linux/arch/powerpc/kernel/ptrace/
H A 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/tools/perf/tests/
H A Dbp_account.c52 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
94 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
H A Dwp.c50 attr->bp_type = wp_type; in get__perf_event_attr()
69 pr_debug("failed opening event %x\n", attr.bp_type); in __event()
H A Dbp_signal_overflow.c90 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
H A Dbp_signal.c113 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
H A Dsigtrap.c44 .bp_type = HW_BREAKPOINT_RW, in make_event_attr()
/linux/tools/perf/tests/shell/attr/
H A Dbase-record-spe35 bp_type=*
H A Dbase-stat36 bp_type=0
H A Dbase-record36 bp_type=0
H A Dtest-record-dummy-C050 bp_type=0
H A Dsystem-wide-dummy47 bp_type=0
/linux/samples/hw_breakpoint/
H A Ddata_breakpoint.c52 attr.bp_type = HW_BREAKPOINT_W; in hw_break_module_init()
/linux/drivers/pmdomain/mediatek/
H A Dmtk-pm-domains.c1061 enum scpsys_bus_prot_block bp_type; in scpsys_get_bus_protection_legacy() local
1066 bp_type = bp_blocks[i]; in scpsys_get_bus_protection_legacy()
1067 scpsys->bus_prot_index[bp_type] = j; in scpsys_get_bus_protection_legacy()
1094 enum scpsys_bus_prot_block bp_type; in scpsys_get_bus_protection() local
1106 bp_type = soc->bus_prot_blocks[i]; in scpsys_get_bus_protection()
1107 scpsys->bus_prot_index[bp_type] = i; in scpsys_get_bus_protection()
/linux/arch/powerpc/kernel/
H A Dhw_breakpoint.c197 if (attr->bp_type & HW_BREAKPOINT_R) in hw_breakpoint_arch_parse()
199 if (attr->bp_type & HW_BREAKPOINT_W) in hw_breakpoint_arch_parse()
/linux/include/linux/
H A Dhw_breakpoint.h49 return bp->attr.bp_type; in hw_breakpoint_type()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dperf_skip.c63 attr.bp_type = HW_BREAKPOINT_X; in serial_test_perf_skip()
/linux/arch/x86/kernel/
H A Dptrace.c514 int err, bp_len, bp_type; in ptrace_fill_bp_fields() local
516 err = arch_bp_generic_fields(len, type, &bp_len, &bp_type); in ptrace_fill_bp_fields()
519 attr->bp_type = bp_type; in ptrace_fill_bp_fields()
H A 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/arch/sh/kernel/
H A Dhw_breakpoint.c199 switch (attr->bp_type) { in arch_build_bp_info()
/linux/arch/loongarch/kernel/
H A Dptrace.c479 attr.bp_type = type; in ptrace_hbp_create()
504 attr->bp_type = type; in ptrace_hbp_fill_attr_ctrl()
1053 attr.bp_type = HW_BREAKPOINT_X; in set_single_step()
H A Dkgdb.c651 bp->attr.bp_type = breakinfo[i].type; in kgdb_correct_hw_break()
692 attr.bp_type = HW_BREAKPOINT_W; in kgdb_arch_late()

12