From patchwork Tue Aug 11 00:52:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Long X-Patchwork-Id: 52277 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 415D72152A for ; Tue, 11 Aug 2015 00:53:09 +0000 (UTC) Received: by lagz9 with SMTP id z9sf47614346lag.3 for ; Mon, 10 Aug 2015 17:53:08 -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=Al+N2LxAChmFGVchQnpdJcv+GOX0xvwAlvzCNWiRSzE=; b=RoSdqddOxpqkzBYUOY0Ce4g4hqssdBeTio03BGKVSg+hWkob9gKhVQyRlQnsAmE92h L1Oli5WvHpwjebkB/c5lOq1/pzVALGzx4vSXlL9o/AeFpE+sBiJrrGtKjPF7Rio4L7AG T1QcvR5SvM1Bk6CSXTaLFgSvnD02Gb56FpPx+c51RDyTYewy97ysnhSm9CPUfYjnzfdp 2S6LzZQiLm55ASllHKLYw/e5eHrQwVYXS+bz6teVlt4xLsD91yv8zVllOIVXVQhDjoWl Ej492QAAocTRgKJZW1VZ5nvQS/NUnrTiUdv9SIxCDY1VGcvf7Tmoy/oXPeAebkAglw3A NKdQ== X-Gm-Message-State: ALoCoQmQUrkIUMRxpDoXSLcz+tXR06olYRC1xv1NRIVxxCVWKaIUTtyNjQ6TVjgXE1SwiVpI2z/D X-Received: by 10.180.186.36 with SMTP id fh4mr4505820wic.7.1439254388244; Mon, 10 Aug 2015 17:53:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.9 with SMTP id ku9ls736719lac.37.gmail; Mon, 10 Aug 2015 17:53:08 -0700 (PDT) X-Received: by 10.152.163.35 with SMTP id yf3mr8682065lab.84.1439254388084; Mon, 10 Aug 2015 17:53:08 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id uq7si16091lbb.107.2015.08.10.17.53.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 17:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbbtg9 with SMTP id tg9so66734789lbb.1 for ; Mon, 10 Aug 2015 17:53:08 -0700 (PDT) X-Received: by 10.152.170.230 with SMTP id ap6mr6948713lac.73.1439254388002; Mon, 10 Aug 2015 17:53:08 -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.7.198 with SMTP id l6csp2215550lba; Mon, 10 Aug 2015 17:53:07 -0700 (PDT) X-Received: by 10.140.148.17 with SMTP id 17mr45774424qhu.10.1439254375158; Mon, 10 Aug 2015 17:52:55 -0700 (PDT) Received: from mail-qg0-f52.google.com (mail-qg0-f52.google.com. [209.85.192.52]) by mx.google.com with ESMTPS id f70si68543qkh.36.2015.08.10.17.52.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 17:52:55 -0700 (PDT) Received-SPF: pass (google.com: domain of dave.long@linaro.org designates 209.85.192.52 as permitted sender) client-ip=209.85.192.52; Received: by qgeg42 with SMTP id g42so93446359qge.1 for ; Mon, 10 Aug 2015 17:52:54 -0700 (PDT) X-Received: by 10.140.35.200 with SMTP id n66mr42905317qgn.21.1439254374494; Mon, 10 Aug 2015 17:52:54 -0700 (PDT) Received: from localhost.localdomain (pool-72-71-243-249.cncdnh.fast00.myfairpoint.net. [72.71.243.249]) by smtp.googlemail.com with ESMTPSA id m62sm167234qhb.45.2015.08.10.17.52.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Aug 2015 17:52:54 -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 v8 7/7] kprobes: Add arm64 case in kprobe example module Date: Mon, 10 Aug 2015 20:52:44 -0400 Message-Id: <1439254364-15362-8-git-send-email-dave.long@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1439254364-15362-1-git-send-email-dave.long@linaro.org> References: <1439254364-15362-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.217.181 as permitted sender) smtp.mailfrom=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 } /*