|
@@ -72,7 +72,7 @@ int arch_install_hw_breakpoint(struct perf_event *bp)
|
|
* If so, DABR will be populated in single_step_dabr_instruction().
|
|
* If so, DABR will be populated in single_step_dabr_instruction().
|
|
*/
|
|
*/
|
|
if (current->thread.last_hit_ubp != bp)
|
|
if (current->thread.last_hit_ubp != bp)
|
|
- set_breakpoint(info);
|
|
|
|
|
|
+ __set_breakpoint(info);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
@@ -198,7 +198,7 @@ void thread_change_pc(struct task_struct *tsk, struct pt_regs *regs)
|
|
|
|
|
|
info = counter_arch_bp(tsk->thread.last_hit_ubp);
|
|
info = counter_arch_bp(tsk->thread.last_hit_ubp);
|
|
regs->msr &= ~MSR_SE;
|
|
regs->msr &= ~MSR_SE;
|
|
- set_breakpoint(info);
|
|
|
|
|
|
+ __set_breakpoint(info);
|
|
tsk->thread.last_hit_ubp = NULL;
|
|
tsk->thread.last_hit_ubp = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -284,7 +284,7 @@ int __kprobes hw_breakpoint_handler(struct die_args *args)
|
|
if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
|
|
if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
|
|
perf_bp_event(bp, regs);
|
|
perf_bp_event(bp, regs);
|
|
|
|
|
|
- set_breakpoint(info);
|
|
|
|
|
|
+ __set_breakpoint(info);
|
|
out:
|
|
out:
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
return rc;
|
|
return rc;
|
|
@@ -316,7 +316,7 @@ int __kprobes single_step_dabr_instruction(struct die_args *args)
|
|
if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
|
|
if (!(info->type & HW_BRK_TYPE_EXTRANEOUS_IRQ))
|
|
perf_bp_event(bp, regs);
|
|
perf_bp_event(bp, regs);
|
|
|
|
|
|
- set_breakpoint(info);
|
|
|
|
|
|
+ __set_breakpoint(info);
|
|
current->thread.last_hit_ubp = NULL;
|
|
current->thread.last_hit_ubp = NULL;
|
|
|
|
|
|
/*
|
|
/*
|