Re: [PATCH v2] arm64: Store breakpoint single step state into pstate

2016-01-21 Thread xiakaixu
ping... 于 2016/1/15 16:20, xiakaixu 写道: > 于 2016/1/13 1:06, Will Deacon 写道: >> On Tue, Jan 05, 2016 at 01:06:15PM +0800, Wangnan (F) wrote: >>> On 2016/1/5 0:55, Will Deacon wrote: The problem seems to be that we take the debug exception before the breakpointed instruction has been execut

Re: [PATCH v2] arm64: Store breakpoint single step state into pstate

2016-01-04 Thread Wangnan (F)
Hi Will, On 2016/1/5 0:55, Will Deacon wrote: Hello, On Thu, Dec 24, 2015 at 01:42:42AM +, Wang Nan wrote: [SNIP] The problem seems to be that we take the debug exception before the breakpointed instruction has been executed and call perf_bp_event at that moment, so when we single-step

Re: [PATCH v2] arm64: Store breakpoint single step state into pstate

2016-01-04 Thread Wangnan (F)
On 2016/1/5 0:55, Will Deacon wrote: Hello, On Thu, Dec 24, 2015 at 01:42:42AM +, Wang Nan wrote: Two 'perf test' fail on arm64: # perf test overflow 17: Test breakpoint overflow signal handler : FAILED! 18: Test breakpoint overflow sampling

Re: [PATCH v2] arm64: Store breakpoint single step state into pstate

2016-01-04 Thread Will Deacon
Hello, On Thu, Dec 24, 2015 at 01:42:42AM +, Wang Nan wrote: > Two 'perf test' fail on arm64: > > # perf test overflow > 17: Test breakpoint overflow signal handler : FAILED! > 18: Test breakpoint overflow sampling: FAILED! > > When breakpoint rais