Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-21 Thread David Long
On 01/19/15 04:03, Pratyush Anand wrote: On Saturday 17 January 2015 12:58 AM, David Long wrote: +static bool aarch64_insn_is_steppable(u32 insn) +{ + if (aarch64_get_insn_class(insn) == AARCH64_INSN_CLS_BR_SYS) { + if (aarch64_insn_is_branch(insn)) +

Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-19 Thread Pratyush Anand
On Saturday 17 January 2015 12:58 AM, David Long wrote: +static bool aarch64_insn_is_steppable(u32 insn) +{ + if (aarch64_get_insn_class(insn) == AARCH64_INSN_CLS_BR_SYS) { + if (aarch64_insn_is_branch(insn)) + return false; + + /* modific

Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-16 Thread David Long
On 01/14/15 04:30, Pratyush Anand wrote: Hi Dave, On Sun, Jan 11, 2015 at 9:33 AM, David Long wrote: From: Sandeepa Prabhu Add support for basic kernel probes(kprobes) and jump probes (jprobes) for ARM64. Kprobes will utilize software breakpoint and single step debug exceptions supported on

Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-14 Thread Pratyush Anand
Hi Dave, On Sun, Jan 11, 2015 at 9:33 AM, David Long wrote: > From: Sandeepa Prabhu > > Add support for basic kernel probes(kprobes) and jump probes > (jprobes) for ARM64. > > Kprobes will utilize software breakpoint and single step debug > exceptions supported on ARM v8. > > Software breakpoint

Re: [PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-12 Thread Steve Capper
On Sat, Jan 10, 2015 at 11:03:18PM -0500, David Long wrote: > From: Sandeepa Prabhu > > Add support for basic kernel probes(kprobes) and jump probes > (jprobes) for ARM64. > > Kprobes will utilize software breakpoint and single step debug > exceptions supported on ARM v8. > > Software breakpoin

[PATCH v4 3/6] arm64: Kprobes with single stepping support

2015-01-10 Thread David Long
From: Sandeepa Prabhu Add support for basic kernel probes(kprobes) and jump probes (jprobes) for ARM64. Kprobes will utilize software breakpoint and single step debug exceptions supported on ARM v8. Software breakpoint is placed at the probe address to trap the kernel execution into kprobe hand