Lines Matching refs:i

60 	int i;  in arch_install_hw_breakpoint()  local
62 for (i = 0; i < nr_wp_slots(); i++) { in arch_install_hw_breakpoint()
63 slot = this_cpu_ptr(&bp_per_reg[i]); in arch_install_hw_breakpoint()
70 if (WARN_ONCE(i == nr_wp_slots(), "Can't find any breakpoint slot")) in arch_install_hw_breakpoint()
78 __set_breakpoint(i, info); in arch_install_hw_breakpoint()
96 int i; in arch_uninstall_hw_breakpoint() local
98 for (i = 0; i < nr_wp_slots(); i++) { in arch_uninstall_hw_breakpoint()
99 slot = this_cpu_ptr(&bp_per_reg[i]); in arch_uninstall_hw_breakpoint()
106 if (WARN_ONCE(i == nr_wp_slots(), "Can't find any breakpoint slot")) in arch_uninstall_hw_breakpoint()
109 __set_breakpoint(i, &null_brk); in arch_uninstall_hw_breakpoint()
231 int i; in thread_change_pc() local
235 for (i = 0; i < nr_wp_slots(); i++) { in thread_change_pc()
236 struct perf_event *bp = __this_cpu_read(bp_per_reg[i]); in thread_change_pc()
245 for (i = 0; i < nr_wp_slots(); i++) { in thread_change_pc()
246 info = counter_arch_bp(__this_cpu_read(bp_per_reg[i])); in thread_change_pc()
247 __set_breakpoint(i, info); in thread_change_pc()
286 int i; in stepping_handler() local
291 for (i = 0; i < nr_wp_slots(); i++) { in stepping_handler()
292 if (!hit[i]) in stepping_handler()
295 counter_arch_bp(bp[i])->perf_single_step = true; in stepping_handler()
296 bp[i] = NULL; in stepping_handler()
304 for (i = 0; i < nr_wp_slots(); i++) { in stepping_handler()
305 if (!hit[i]) in stepping_handler()
307 handler_error(bp[i]); in stepping_handler()
308 bp[i] = NULL; in stepping_handler()
318 int i; in handle_p10dd1_spurious_exception() local
326 for (i = 0; i < nr_wp_slots(); i++) { in handle_p10dd1_spurious_exception()
329 if (!bp[i]) in handle_p10dd1_spurious_exception()
332 info = counter_arch_bp(bp[i]); in handle_p10dd1_spurious_exception()
360 if (i == nr_wp_slots()) in handle_p10dd1_spurious_exception()
363 for (i = 0; i < nr_wp_slots(); i++) { in handle_p10dd1_spurious_exception()
364 if (bp[i]) { in handle_p10dd1_spurious_exception()
365 hit[i] = 1; in handle_p10dd1_spurious_exception()
366 counter_arch_bp(bp[i])->type |= HW_BRK_TYPE_EXTRANEOUS_IRQ; in handle_p10dd1_spurious_exception()
382 int i; in hw_breakpoint_handler() local
405 for (i = 0; i < nr_wp_slots(); i++) { in hw_breakpoint_handler()
408 bp[i] = __this_cpu_read(bp_per_reg[i]); in hw_breakpoint_handler()
409 if (!bp[i]) in hw_breakpoint_handler()
412 info = counter_arch_bp(bp[i]); in hw_breakpoint_handler()
418 handler_error(bp[i]); in hw_breakpoint_handler()
419 bp[i] = NULL; in hw_breakpoint_handler()
424 if (is_ptrace_bp(bp[i])) in hw_breakpoint_handler()
426 hit[i] = 1; in hw_breakpoint_handler()
452 for (i = 0; i < nr_wp_slots(); i++) { in hw_breakpoint_handler()
453 if (!hit[i] || !is_ptrace_bp(bp[i])) in hw_breakpoint_handler()
455 perf_bp_event(bp[i], regs); in hw_breakpoint_handler()
456 bp[i] = NULL; in hw_breakpoint_handler()
464 for (i = 0; i < nr_wp_slots(); i++) { in hw_breakpoint_handler()
465 if (!hit[i]) in hw_breakpoint_handler()
467 larx_stcx_err(bp[i]); in hw_breakpoint_handler()
468 bp[i] = NULL; in hw_breakpoint_handler()
481 for (i = 0; i < nr_wp_slots(); i++) { in hw_breakpoint_handler()
482 if (!hit[i]) in hw_breakpoint_handler()
484 if (!(counter_arch_bp(bp[i])->type & HW_BRK_TYPE_EXTRANEOUS_IRQ)) in hw_breakpoint_handler()
485 perf_bp_event(bp[i], regs); in hw_breakpoint_handler()
489 for (i = 0; i < nr_wp_slots(); i++) { in hw_breakpoint_handler()
490 if (!bp[i]) in hw_breakpoint_handler()
492 __set_breakpoint(i, counter_arch_bp(bp[i])); in hw_breakpoint_handler()
515 for (int i = 0; i < nr_wp_slots(); i++) { in single_step_dabr_instruction() local
519 bp = __this_cpu_read(bp_per_reg[i]); in single_step_dabr_instruction()
540 __set_breakpoint(i, counter_arch_bp(bp)); in single_step_dabr_instruction()
582 int i; in flush_ptrace_hw_breakpoint() local
585 for (i = 0; i < nr_wp_slots(); i++) { in flush_ptrace_hw_breakpoint()
586 unregister_hw_breakpoint(t->ptrace_bps[i]); in flush_ptrace_hw_breakpoint()
587 t->ptrace_bps[i] = NULL; in flush_ptrace_hw_breakpoint()