From patchwork Mon Apr 20 20:19:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 47374 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 51CE42121F for ; Mon, 20 Apr 2015 20:20:14 +0000 (UTC) Received: by wgtl5 with SMTP id l5sf40744988wgt.1 for ; Mon, 20 Apr 2015 13:20:13 -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=XmtjZ2zVUz+rDjBhj0txqbIxTFcjNyUhA/hWEOe6Upbhwkyu5+MXZe7yTMJYJ2kpHF UZesRPXFVT0EkyHeUkkAUo7W0k2M93KOpv6ulr5fgKUCc8bMW1VovLsRgcvqX0AQtB7P mwGZksSGXiNiCWpNkm38G7i/VE3NSzRpktT+GwE1WHtfU84cqzUG2sHeNWzCtO5Z1IFO ERP+RX5ffb5ZwdHNobz7i4cjGQ1IYoD+ZrLirR56fsX1pp4tEl3nxNmHhyQTuxGXnkWG JBMYO5Bu9NbBWTIpfc+Uu50AUwtYLnphm4hW8VlAerDyRanYmRC/HQCPD3QInl6BvMdA tq7g== X-Gm-Message-State: ALoCoQlUZ69c4xR3yC32a1pGy7azNh8kS+ANqKAW6C0x8cuFkeD9QehzFFI1I4/lRZIXqdzizqm4 X-Received: by 10.112.28.111 with SMTP id a15mr7680415lbh.21.1429561213612; Mon, 20 Apr 2015 13:20:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.101 with SMTP id p5ls736334laj.53.gmail; Mon, 20 Apr 2015 13:20:13 -0700 (PDT) X-Received: by 10.112.167.73 with SMTP id zm9mr8165972lbb.89.1429561213288; Mon, 20 Apr 2015 13:20:13 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id j2si15738755lam.114.2015.04.20.13.20.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 13:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laat2 with SMTP id t2so135830635laa.1 for ; Mon, 20 Apr 2015 13:20:13 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr16900951lac.41.1429561213200; Mon, 20 Apr 2015 13:20:13 -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.67.65 with SMTP id l1csp232806lbt; Mon, 20 Apr 2015 13:20:12 -0700 (PDT) X-Received: by 10.140.106.202 with SMTP id e68mr18961233qgf.42.1429561199516; Mon, 20 Apr 2015 13:19:59 -0700 (PDT) Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com. [209.85.192.46]) by mx.google.com with ESMTPS id 18si20644612qkz.114.2015.04.20.13.19.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2015 13:19:59 -0700 (PDT) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.192.46 as permitted sender) client-ip=209.85.192.46; Received: by qgdy78 with SMTP id y78so58545378qgd.0 for ; Mon, 20 Apr 2015 13:19:58 -0700 (PDT) X-Received: by 10.55.31.32 with SMTP id f32mr31725569qkf.81.1429561198893; Mon, 20 Apr 2015 13:19:58 -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 77sm15240386qhf.44.2015.04.20.13.19.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Apr 2015 13:19:58 -0700 (PDT) From: David Long To: linux-arm-kernel@lists.infradead.org, Russell King Cc: sandeepa.s.prabhu@gmail.com, William Cohen , Steve Capper , Catalin Marinas , Will Deacon , "Jon Medhurst (Tixy)" , Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , , linux-kernel@vger.kernel.org Subject: [PATCH v6 6/6] kprobes: Add arm64 case in kprobe example module Date: Mon, 20 Apr 2015 16:19:47 -0400 Message-Id: <1429561187-3661-7-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1429561187-3661-1-git-send-email-dave.long@linaro.org> References: <1429561187-3661-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.45 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 } /*