From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 288B3C35646 for ; Fri, 21 Feb 2020 14:12:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05E8B2073A for ; Fri, 21 Feb 2020 14:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728840AbgBUOMc (ORCPT ); Fri, 21 Feb 2020 09:12:32 -0500 Received: from verein.lst.de ([213.95.11.211]:55627 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728344AbgBUOMc (ORCPT ); Fri, 21 Feb 2020 09:12:32 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id C4B6668C65; Fri, 21 Feb 2020 15:12:28 +0100 (CET) Date: Fri, 21 Feb 2020 15:12:28 +0100 From: Christoph Hellwig To: Will Deacon Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, akpm@linux-foundation.org, "K . Prasad" , Thomas Gleixner , Greg Kroah-Hartman , Frederic Weisbecker , Christoph Hellwig , Quentin Perret , Alexei Starovoitov , Masami Hiramatsu Subject: Re: [PATCH 1/3] samples/hw_breakpoint: Drop HW_BREAKPOINT_R when reporting writes Message-ID: <20200221141228.GB6968@lst.de> References: <20200221114404.14641-1-will@kernel.org> <20200221114404.14641-2-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200221114404.14641-2-will@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 11:44:02AM +0000, Will Deacon wrote: > Given the name of a kernel symbol, the 'data_breakpoint' test claims to > "report any write operations on the kernel symbol". However, it creates > the breakpoint using both HW_BREAKPOINT_W and HW_BREAKPOINT_R, which > menas it also fires for read access. > > Drop HW_BREAKPOINT_R from the breakpoint attributes. Looks good, Reviewed-by: Christoph Hellwig