From patchwork Fri Jul 7 12:03:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pratyush Anand X-Patchwork-Id: 9829993 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7D164602CA for ; Fri, 7 Jul 2017 12:06:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BCEE2858E for ; Fri, 7 Jul 2017 12:06:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EC2C28639; Fri, 7 Jul 2017 12:06:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DF6152858E for ; Fri, 7 Jul 2017 12:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=K5n5kQA+JAvhtsQiW24WaOuJKsDeAdqR2vXn91HM4p4=; b=VqC7rzRyA3a1wTXQlpqupUWyDQ yGfwKGiodVIqK8ha7yGzND9RlakqHsOsLSOKyFaSH/CI3RAHmP6KJCBgrHEYhgurfIFrrAsD77XVV 1rUQ2frNIs9qm8A8RogSLV874WViitrH1duJEfCORoD4NvRasGNoNiIPuSTzS/Wac2LZ0ETtHAnU9 aDzNo0n0wRxXtmy74KqGbIfMQ0c6QGyOMmK27tncuU17OY/uaEp57jWqdtD3WZBBUOZYcIGvNFb9i +XVJRHo6eHg7hqCVnjQRoJkXzPEVNg64cEsdFY1RvuHobJiAc5xifal3pqfMTs6R42xpESfpZqVHa xPZIuA6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dTS1G-0004KY-Qf; Fri, 07 Jul 2017 12:05:58 +0000 Received: from mail-pg0-f53.google.com ([74.125.83.53]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dTS0n-0003XG-8F for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2017 12:05:31 +0000 Received: by mail-pg0-f53.google.com with SMTP id u62so16299953pgb.3 for ; Fri, 07 Jul 2017 05:05:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=vjbgMp0lKKUKFL7hekMKQ3DlftVyNHptTIrCsxGg3l4=; b=Eht8pmcxeciyqUwKaSH0uTiOngCadVreJEZWM1C6iQjdwfi0bXYkbQksC9iZ1Xyu7A LorpCPDrGw/4tr/fBn/7Omi0Z0Djb8bXho5/ZeoTRZqjMKJaoTY4AyDqf1r/KlgGN8hG BP/fCIMXfFI33UcnN3/uTt3e6KNCVtrgRL0UbiJM7NQzkE2cTLjyyqL1iD1TnsSoMKaD yh/hRwDQLvZI8cLogH8fHZJqdJ2QW/4DHp396lo5U5Gc7sV25XVuG0RLFyQo5/mINhHX 33g7zmWw4/9Ljj/7SIq3xAQzwESiU2pk0Aty+HVhxXVzZSoCqHzQHt4saQzcs5aRkbg6 Vlmg== X-Gm-Message-State: AIVw110Bc5MRPfRe/lU+80cQB7AJuAXoDm1yRhreUXv3hnVa3IckJ5rK 3m8i7D0R771RiVgemPcJ8A== X-Received: by 10.84.130.76 with SMTP id 70mr2587223plc.138.1499429108090; Fri, 07 Jul 2017 05:05:08 -0700 (PDT) Received: from localhost ([182.64.124.31]) by smtp.gmail.com with ESMTPSA id c63sm8652519pfk.79.2017.07.07.05.05.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jul 2017 05:05:07 -0700 (PDT) From: Pratyush Anand To: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com Subject: [PATCH V2 3/4] hw-breakpoint: sample test: set step_needed bit field Date: Fri, 7 Jul 2017 17:33:59 +0530 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170707_050529_382475_86D44EA8 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pratyush Anand , will.deacon@arm.com, linux-kernel@vger.kernel.org, huawei.libin@huawei.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP arch like ARM64 expects 'step_needed == true' in order to use default single step handler. Therefore, set the bit field in the test case. Other arch will not have any affect as they do not use it so far. Signed-off-by: Pratyush Anand --- samples/hw_breakpoint/data_breakpoint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/hw_breakpoint/data_breakpoint.c b/samples/hw_breakpoint/data_breakpoint.c index ef7f32291852..5a1919d01800 100644 --- a/samples/hw_breakpoint/data_breakpoint.c +++ b/samples/hw_breakpoint/data_breakpoint.c @@ -59,6 +59,7 @@ static int __init hw_break_module_init(void) attr.bp_addr = kallsyms_lookup_name(ksym_name); attr.bp_len = HW_BREAKPOINT_LEN_4; attr.bp_type = HW_BREAKPOINT_W | HW_BREAKPOINT_R; + attr.step_needed = true; sample_hbp = register_wide_hw_breakpoint(&attr, sample_hbp_handler, NULL); if (IS_ERR((void __force *)sample_hbp)) {