/Linux-v4.19/kernel/events/ |
D | hw_breakpoint.c | 89 static inline enum bp_type_idx find_slot_idx(u64 bp_type) in find_slot_idx() argument 91 if (bp_type & HW_BREAKPOINT_RW) in find_slot_idx() 126 find_slot_idx(iter->attr.bp_type) == type && in task_bp_pinned() 281 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot() argument 292 if (bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot() 293 bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot() 296 type = find_slot_idx(bp_type); in __reserve_bp_slot() 321 ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot() 328 static void __release_bp_slot(struct perf_event *bp, u64 bp_type) in __release_bp_slot() argument 333 type = find_slot_idx(bp_type); in __release_bp_slot() [all …]
|
/Linux-v4.19/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-v4.19/arch/xtensa/kernel/ |
D | ptrace.c | 283 if (bp->attr.bp_type & HW_BREAKPOINT_X) { in ptrace_hbptriggered() 307 attr.bp_type = type; in ptrace_hbp_create() 347 if (bp->attr.bp_type & HW_BREAKPOINT_R) in ptrace_gethbpregs() 349 if (bp->attr.bp_type & HW_BREAKPOINT_W) in ptrace_gethbpregs() 368 int bp_type = 0; in ptrace_sethbpregs() local 380 bp_type |= HW_BREAKPOINT_R; in ptrace_sethbpregs() 382 bp_type |= HW_BREAKPOINT_W; in ptrace_sethbpregs() 385 bp_type = HW_BREAKPOINT_X; in ptrace_sethbpregs() 390 bp_type ? bp_type : HW_BREAKPOINT_RW); in ptrace_sethbpregs() 402 attr.bp_type = bp_type; in ptrace_sethbpregs()
|
D | hw_breakpoint.c | 55 switch (attr->bp_type) { in hw_breakpoint_arch_parse()
|
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/ |
D | perf-hwbreak.c | 58 attr.bp_type = HW_BREAKPOINT_R; in breakpoint_test() 105 attr.bp_type = readwriteflag; in runtestsingle()
|
/Linux-v4.19/tools/perf/tests/ |
D | bp_account.c | 41 attr->bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event() 83 attr_mod.bp_type = HW_BREAKPOINT_X; in bp_accounting()
|
D | bp_signal_overflow.c | 83 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
|
D | attr.c | 134 WRITE_ASS(bp_type, PRIu32); in store_event()
|
D | bp_signal.c | 116 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
|
D | parse-events.c | 133 evsel->attr.bp_type); in test__checkevent_breakpoint() 147 HW_BREAKPOINT_X == evsel->attr.bp_type); in test__checkevent_breakpoint_x() 161 HW_BREAKPOINT_R == evsel->attr.bp_type); in test__checkevent_breakpoint_r() 176 HW_BREAKPOINT_W == evsel->attr.bp_type); in test__checkevent_breakpoint_w() 191 (HW_BREAKPOINT_R|HW_BREAKPOINT_W) == evsel->attr.bp_type); in test__checkevent_breakpoint_rw() 1234 evsel->attr.bp_type); in test__checkevent_breakpoint_len() 1249 evsel->attr.bp_type); in test__checkevent_breakpoint_len_w()
|
/Linux-v4.19/tools/perf/tests/attr/ |
D | base-record | 36 bp_type=0
|
D | base-stat | 36 bp_type=0
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | hw_breakpoint.c | 152 if (attr->bp_type & HW_BREAKPOINT_R) in hw_breakpoint_arch_parse() 154 if (attr->bp_type & HW_BREAKPOINT_W) in hw_breakpoint_arch_parse()
|
/Linux-v4.19/samples/hw_breakpoint/ |
D | data_breakpoint.c | 61 attr.bp_type = HW_BREAKPOINT_W | HW_BREAKPOINT_R; in hw_break_module_init()
|
/Linux-v4.19/include/linux/ |
D | hw_breakpoint.h | 39 return bp->attr.bp_type; in hw_breakpoint_type()
|
/Linux-v4.19/arch/x86/kernel/ |
D | ptrace.c | 553 int err, bp_len, bp_type; in ptrace_fill_bp_fields() local 555 err = arch_bp_generic_fields(len, type, &bp_len, &bp_type); in ptrace_fill_bp_fields() 558 attr->bp_type = bp_type; in ptrace_fill_bp_fields()
|
D | kgdb.c | 231 bp->attr.bp_type = breakinfo[breakno].type; in kgdb_correct_hw_break() 672 attr.bp_type = HW_BREAKPOINT_W; in kgdb_arch_late()
|
D | hw_breakpoint.c | 250 switch (attr->bp_type) { in arch_build_bp_info()
|
/Linux-v4.19/arch/sh/kernel/ |
D | hw_breakpoint.c | 201 switch (attr->bp_type) { in arch_build_bp_info()
|
/Linux-v4.19/drivers/misc/ |
D | kgdbts.c | 232 static void break_helper(char *bp_type, char *arg, unsigned long vaddr) in break_helper() argument 241 sprintf(scratch_buf, "%s,%lx,%i", bp_type, addr, in break_helper()
|
/Linux-v4.19/arch/arm/kernel/ |
D | ptrace.c | 461 attr.bp_type = type; in ptrace_hbp_create() 569 attr.bp_type = gen_type; in ptrace_sethbpregs()
|
/Linux-v4.19/tools/include/uapi/linux/ |
D | perf_event.h | 382 __u32 bp_type; member
|
/Linux-v4.19/include/uapi/linux/ |
D | perf_event.h | 382 __u32 bp_type; member
|
/Linux-v4.19/tools/perf/util/ |
D | parse-events.c | 838 if (attr->bp_type & bit) \ in parse_breakpoint_type() 841 attr->bp_type |= bit; \ in parse_breakpoint_type() 861 if (!attr->bp_type) /* Default */ in parse_breakpoint_type() 862 attr->bp_type = HW_BREAKPOINT_R | HW_BREAKPOINT_W; in parse_breakpoint_type() 880 if (attr.bp_type == HW_BREAKPOINT_X) in parse_events_add_breakpoint()
|