Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-31 Thread Catalin Marinas
On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > +int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct > *mm, > + unsigned long addr) > +{ > + probe_opcode_t insn; > + > + /* TODO: Currently we do not support AARCH32 instruction probing */

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-31 Thread Catalin Marinas
Hi Pratyush, On Mon, Oct 31, 2016 at 02:10:43PM +0530, Pratyush Anand wrote: > On Sun, Oct 30, 2016 at 7:39 PM, Catalin Marinas > wrote: > > On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > >> --- /dev/null > >> +++ b/arch/arm64/kernel/probes/uprobes.c > >> @@ -0,0 +1,221 @@ > >>

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-31 Thread Pratyush Anand
Hi Catalin, On Sun, Oct 30, 2016 at 7:39 PM, Catalin Marinas wrote: > On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: >> --- /dev/null >> +++ b/arch/arm64/kernel/probes/uprobes.c >> @@ -0,0 +1,221 @@ >> +/* >> + * Copyright (C) 2014-2016 Pratyush Anand >> + * >> + * This program

Re: [PATCH V2 6/6] arm64: Add uprobe support

2016-10-30 Thread Catalin Marinas
On Tue, Sep 27, 2016 at 01:18:00PM +0530, Pratyush Anand wrote: > --- /dev/null > +++ b/arch/arm64/kernel/probes/uprobes.c > @@ -0,0 +1,221 @@ > +/* > + * Copyright (C) 2014-2016 Pratyush Anand > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the term

[PATCH V2 6/6] arm64: Add uprobe support

2016-09-27 Thread Pratyush Anand
This patch adds support for uprobe on ARM64 architecture. Unit tests for following have been done so far and they have been found working 1. Step-able instructions, like sub, ldr, add etc. 2. Simulation-able like ret, cbnz, cbz etc. 3. uretprobe 4. Reject-able instructions like sev