Re: [PATCH] ARM/hw_breakpoint: modify dead code for breakpoint_handler()

2019-10-11 Thread Will Deacon
On Wed, Oct 09, 2019 at 05:27:00PM +0800, wangxu wrote: > From: Wang Xu > > In perf_event_alloc(), event->overflow_handler is initialized to a > non-null value, which makes enable_single_step(bp, addr) in > breakpoint_handler() never be executed. > > As a matter of fact, the branch condition has

[PATCH] ARM/hw_breakpoint: modify dead code for breakpoint_handler()

2019-10-09 Thread wangxu
From: Wang Xu In perf_event_alloc(), event->overflow_handler is initialized to a non-null value, which makes enable_single_step(bp, addr) in breakpoint_handler() never be executed. As a matter of fact, the branch condition has been updated to is_default_overflow_handler(). Signed-off-by: Wang X