From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755156AbcJ3VVN (ORCPT ); Sun, 30 Oct 2016 17:21:13 -0400 Received: from foss.arm.com ([217.140.101.70]:54632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753745AbcJ3VUZ (ORCPT ); Sun, 30 Oct 2016 17:20:25 -0400 Date: Sun, 30 Oct 2016 14:09:01 +0000 From: Catalin Marinas To: Pratyush Anand Cc: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, srikar@linux.vnet.ibm.com, vijaya.kumar@caviumnetworks.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, oleg@redhat.com, dave.long@linaro.org, steve.capper@linaro.org, wcohen@redhat.com Subject: Re: [PATCH V2 6/6] arm64: Add uprobe support Message-ID: <20161030140901.h6mdxbb4pgqpqs7j@localhost> References: <41cc70043792e65cbc3b4cc4ad7fbf6379afa550.1474960629.git.panand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41cc70043792e65cbc3b4cc4ad7fbf6379afa550.1474960629.git.panand@redhat.com> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + */ > +#include > +#include > +#include > +#include > + > +#include "decode-insn.h" > + > +#define UPROBE_INV_FAULT_CODE UINT_MAX > + > +bool is_trap_insn(uprobe_opcode_t *insn) > +{ > + return false; > +} On the previous series, I had a comment left unanswered with regards to always returning false in is_trap_insn(): Looking at handle_swbp(), if we hit a breakpoint for which we don't have a valid uprobe, this function currently sends a SIGTRAP. But if is_trap_insn() returns false always, is_trap_at_addr() would return 0 in this case so the SIGTRAP is never issued. -- Catalin