From patchwork Wed Dec 2 22:53:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 57582 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3174957lbb; Wed, 2 Dec 2015 15:13:47 -0800 (PST) X-Received: by 10.66.227.231 with SMTP id sd7mr8736529pac.60.1449098027467; Wed, 02 Dec 2015 15:13:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ul5si7520256pab.201.2015.12.02.15.13.47; Wed, 02 Dec 2015 15:13:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758650AbbLBXNp (ORCPT + 28 others); Wed, 2 Dec 2015 18:13:45 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:33273 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757874AbbLBXN1 (ORCPT ); Wed, 2 Dec 2015 18:13:27 -0500 Received: by pabfh17 with SMTP id fh17so55175369pab.0 for ; Wed, 02 Dec 2015 15:13:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LVu5A7MhWIZJwHzMpBDvO2hJXs0kiS9KgAIKJuHIIBk=; b=x7dF7DbWz05UMu4EwOzfJZm4zlJAvh8mEVoV+krd8/+A44nOI11lV7VwLtNpP8bgP1 lNYHbr+Zo5vCV/5UAGG5WRajxhN+pMUrIfA/+gCFfhUGHWpNnVqQ/b70uig8T+88jIfL ApkAil+Yo5ffWrwHNDkAfq4G91QrTLgdUm1LPfUZPjo7D9R3usMHvo1NT6uIILWSCjN8 sGRBWYLuxJoCIa5qimtYS+r6a2AS7mhlE1gkQRdSfkhvYnOav896AM2dhUwHwI+nDPXa Oru/W3rCFvDEFT20kMch5G7nZLOdY+cuJ2a/NYJl9H1gerYI2W/wD3EZstxIXkXRygIm 5gkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LVu5A7MhWIZJwHzMpBDvO2hJXs0kiS9KgAIKJuHIIBk=; b=hcH8kSZlnDf/Kg+pIugyMGCkEnTmIDkwV3h/Vr0MhF5yAJupnBejqH3hKt0gLg77E2 WanwrTpcUIBLdcc73yf8Enxd+txwa/sUMJ9uDs/3kJYxQ8McFH/aYP5hzxh6WSLe7vFU IvTNcYmRPr7QTMfvxcvG1BfbV272mgpWbSseN0tKGLNfD1+Jlh5h1YqP0jtcNHIfJTme euaqD++SsvwTnG42VXXm/1okCO2kXeFojUv2TGIW6w6JCQw0kL3Bob7QpTrhkPgruqXA GlXkRJBx+bpxlJCXKdabHQCONt1Ybk5zZS52YjH7WibmMHuAUP3kiYQFd7MaQxpWO9i0 S9JA== X-Gm-Message-State: ALoCoQk7/wRb68HtKqwhwdzeBMGdtXCbU0IqHVobbQIQiDnQrQck8O3GOK8MEIsjpnmDc9mHJKVD X-Received: by 10.66.218.170 with SMTP id ph10mr8728641pac.58.1449098006803; Wed, 02 Dec 2015 15:13:26 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id ga13sm6429030pac.47.2015.12.02.15.13.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2015 15:13:26 -0800 (PST) From: Yang Shi To: akpm@linux-foundation.org, rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org, linux-sh@vger.kernel.org Subject: [PATCH V2 6/7] sh: mm/gup: add gup trace points Date: Wed, 2 Dec 2015 14:53:32 -0800 Message-Id: <1449096813-22436-7-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449096813-22436-1-git-send-email-yang.shi@linaro.org> References: <1449096813-22436-1-git-send-email-yang.shi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc: linux-sh@vger.kernel.org Signed-off-by: Yang Shi --- arch/sh/mm/gup.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.0.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/arch/sh/mm/gup.c b/arch/sh/mm/gup.c index e7af6a6..6df3e97 100644 --- a/arch/sh/mm/gup.c +++ b/arch/sh/mm/gup.c @@ -12,6 +12,10 @@ #include #include #include + +#define CREATE_TRACE_POINTS +#include + #include static inline pte_t gup_get_pte(pte_t *ptep) @@ -178,6 +182,8 @@ int __get_user_pages_fast(unsigned long start, int nr_pages, int write, (void __user *)start, len))) return 0; + trace_gup_get_user_pages_fast(start, nr_pages, write, pages); + /* * This doesn't prevent pagetable teardown, but does prevent * the pagetables and pages from being freed. @@ -231,6 +237,8 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, if (end < start) goto slow_irqon; + trace_gup_get_user_pages_fast(start, nr_pages, write, pages); + local_irq_disable(); pgdp = pgd_offset(mm, addr); do {