From patchwork Mon Jun 15 19:07:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 49931 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4DCB5205DE for ; Mon, 15 Jun 2015 19:07:33 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf27979693lbc.2 for ; Mon, 15 Jun 2015 12:07:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=QPuP7FEzwxlXi3R4uMm4/M4/85EcoP8OoNN+mQd5pQI=; b=a9dASLCoOz23sR8h5zhnfpEceMSi1UvsghyWHJ63XUa0OO1f4c3mEeTEZ/UrvJLF9z krY3s2Ycab/zGuCG+Zx8C6JxFp2HxS+vI9pnW2cIJKN5IjU5nqzfjz9M8bRvSAe94Uid Fvsi6y4mD/BQUu4ysZ+2K1n3YmGs54wLemgg/Ad4n+h9/OUZPS5KK5YoIskA9shdgEg4 9vAkdFvEpxSNP4m/+JfmI5sM7aM/sU4vl+RymlWXiZzvbfbbLmR/UU625Y1soQ6wgbnn u1WlMsJMWPXIKnrpnPjnNCFAloEVqud0v4muJhe40y9KAaELP3FqjtGhcuZibIKHFnCi vJpg== X-Gm-Message-State: ALoCoQl/I8p9wdtkjxyBHWCLDNAVZiqs5qVi253XZA8hzYd2CSjYt6d38UBq1P8eH+dbgDXyrv0u X-Received: by 10.180.182.49 with SMTP id eb17mr10539114wic.2.1434395252215; Mon, 15 Jun 2015 12:07:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.164 with SMTP id cz4ls959644lac.3.gmail; Mon, 15 Jun 2015 12:07:32 -0700 (PDT) X-Received: by 10.152.27.1 with SMTP id p1mr28066893lag.112.1434395252056; Mon, 15 Jun 2015 12:07:32 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id wm10si11167070lbb.149.2015.06.15.12.07.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 12:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labbc20 with SMTP id bc20so28014469lab.1 for ; Mon, 15 Jun 2015 12:07:31 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr1682876lbc.32.1434395251918; Mon, 15 Jun 2015 12:07:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1616883lbb; Mon, 15 Jun 2015 12:07:31 -0700 (PDT) X-Received: by 10.140.233.10 with SMTP id e10mr40442151qhc.55.1434395240379; Mon, 15 Jun 2015 12:07:20 -0700 (PDT) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com. [209.85.220.181]) by mx.google.com with ESMTPS id c5si13783523qci.30.2015.06.15.12.07.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 12:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by qkfe185 with SMTP id e185so18443986qkf.3 for ; Mon, 15 Jun 2015 12:07:19 -0700 (PDT) X-Received: by 10.55.16.67 with SMTP id a64mr63008315qkh.31.1434395239766; Mon, 15 Jun 2015 12:07:19 -0700 (PDT) Received: from localhost.localdomain (pool-72-71-243-249.cncdnh.fast00.myfairpoint.net. [72.71.243.249]) by mx.google.com with ESMTPSA id 6sm6748404qks.37.2015.06.15.12.07.18 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jun 2015 12:07:19 -0700 (PDT) From: David Long To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Russell King Cc: sandeepa.s.prabhu@gmail.com, William Cohen , Steve Capper , "Jon Medhurst (Tixy)" , Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH v7 7/7] kprobes: Add arm64 case in kprobe example module Date: Mon, 15 Jun 2015 15:07:09 -0400 Message-Id: <1434395229-6654-8-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1434395229-6654-1-git-send-email-dave.long@linaro.org> References: <1434395229-6654-1-git-send-email-dave.long@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: dave.long@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Sandeepa Prabhu Add info prints in sample kprobe handlers for ARM64 Signed-off-by: Sandeepa Prabhu --- samples/kprobes/kprobe_example.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/kprobes/kprobe_example.c b/samples/kprobes/kprobe_example.c index 366db1a..51d459c 100644 --- a/samples/kprobes/kprobe_example.c +++ b/samples/kprobes/kprobe_example.c @@ -42,6 +42,10 @@ static int handler_pre(struct kprobe *p, struct pt_regs *regs) " ex1 = 0x%lx\n", p->addr, regs->pc, regs->ex1); #endif +#ifdef CONFIG_ARM64 + pr_info("pre_handler: p->addr = 0x%p, pc = 0x%lx\n", + p->addr, (long)regs->pc); +#endif /* A dump_stack() here will give a stack backtrace */ return 0; @@ -67,6 +71,10 @@ static void handler_post(struct kprobe *p, struct pt_regs *regs, printk(KERN_INFO "post_handler: p->addr = 0x%p, ex1 = 0x%lx\n", p->addr, regs->ex1); #endif +#ifdef CONFIG_ARM64 + pr_info("post_handler: p->addr = 0x%p, pc = 0x%lx\n", + p->addr, (long)regs->pc); +#endif } /*