Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 5 of 5) sorted by relevance

/kernel/debug/kdb/
Dkdb_bp.c40 static char *kdb_bptype(kdb_bp_t *bp) in kdb_bptype() argument
42 if (bp->bp_type < 0 || bp->bp_type > 4) in kdb_bptype()
45 return kdb_rwtypes[bp->bp_type]; in kdb_bptype()
48 static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp) in kdb_parsebp() argument
53 bp->bph_length = 1; in kdb_parsebp()
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()
64 bp->bph_length = 1; in kdb_parsebp()
80 bp->bph_length = len; in kdb_parsebp()
[all …]
Dkdb_debugger.c56 kdb_bp_t *bp; in kdb_stub() local
75 for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++) { in kdb_stub()
76 if ((bp->bp_enabled) && (bp->bp_addr == addr)) { in kdb_stub()
85 for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++) { in kdb_stub()
86 if (bp->bp_free) in kdb_stub()
88 if (bp->bp_addr == addr) { in kdb_stub()
89 bp->bp_delay = 1; in kdb_stub()
90 bp->bp_delayed = 1; in kdb_stub()
Dkdb_cmds4 # registers) are not reliable this early. set and bp commands should
/kernel/events/
Dhw_breakpoint.c80 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() argument
85 static inline enum bp_type_idx find_slot_idx(struct perf_event *bp) in find_slot_idx() argument
87 if (bp->attr.bp_type & HW_BREAKPOINT_RW) in find_slot_idx()
114 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() argument
116 struct task_struct *tsk = bp->hw.bp_target; in task_bp_pinned()
135 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument
138 int cpu = bp->cpu; in fetch_bp_busy_slots()
139 struct task_struct *tsk = bp->hw.bp_target; in fetch_bp_busy_slots()
146 slots->pinned += task_bp_pinned(cpu, bp, type); in fetch_bp_busy_slots()
159 nr += task_bp_pinned(cpu, bp, type); in fetch_bp_busy_slots()
[all …]
Dcore.c5777 void perf_bp_event(struct perf_event *bp, void *data) in perf_bp_event() argument
5782 perf_sample_data_init(&sample, bp->attr.bp_addr, 0); in perf_bp_event()
5784 if (!bp->hw.state && !perf_exclude_event(bp, regs)) in perf_bp_event()
5785 perf_swevent_event(bp, 1, &sample, regs); in perf_bp_event()