Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753689AbbDHLBQ (ORCPT ); Wed, 8 Apr 2015 07:01:16 -0400 Received: from mail-qc0-f181.google.com ([209.85.216.181]:33426 "EHLO mail-qc0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751176AbbDHLBO (ORCPT ); Wed, 8 Apr 2015 07:01:14 -0400 Message-ID: <55250A71.6060200@linaro.org> Date: Wed, 08 Apr 2015 07:01:05 -0400 From: David Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Pratyush Anand CC: "linux-arm-kernel@lists.infradead.org" , Russell King , Sandeepa Prabhu , William Cohen , Steve Capper , Catalin Marinas , Will Deacon , "Jon Medhurst (Tixy)" , Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/6] arm64: Kprobes with single stepping support References: <1424214701-4899-1-git-send-email-dave.long@linaro.org> <1424214701-4899-4-git-send-email-dave.long@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1390 Lines: 54 On 04/08/15 02:07, Pratyush Anand wrote: > Hi Dave, > > On Wed, Feb 18, 2015 at 4:41 AM, David Long wrote: >> >> From: Sandeepa Prabhu >> >> Add support for basic kernel probes(kprobes) and jump probes >> (jprobes) for ARM64. >> > > [...] > >> >> +#ifdef CONFIG_KPROBES >> +static inline int notify_page_fault(struct pt_regs *regs, unsigned int esr) >> +{ >> + int ret = 0; >> + >> + /* kprobe_running() needs smp_processor_id() */ >> + if (!user_mode(regs)) { >> + preempt_disable(); >> + if (kprobe_running() && kprobe_fault_handler(regs, esr)) >> + ret = 1; >> + preempt_enable(); >> + } >> + >> + return ret; >> +} >> +#else >> +static inline int notify_page_fault(struct pt_regs *regs) > > Please fix this definition in next revision, other wise there would be > a build error > if CONFIG_KPROBES is not defined. > > > should be: > > +static inline int notify_page_fault(struct pt_regs *regs, unsigned int esr) > > > ~Pratyush > Yes, the fix is already in the v6 version I'm working on. -dl -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/