From patchwork Wed Dec 9 21:22:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58183 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp106910lbb; Wed, 9 Dec 2015 13:42:56 -0800 (PST) X-Received: by 10.98.73.13 with SMTP id w13mr1663199pfa.72.1449697376269; Wed, 09 Dec 2015 13:42:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si15124764pas.67.2015.12.09.13.42.55; Wed, 09 Dec 2015 13:42:56 -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 S1753338AbbLIVmy (ORCPT + 28 others); Wed, 9 Dec 2015 16:42:54 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:32808 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753035AbbLIVm1 (ORCPT ); Wed, 9 Dec 2015 16:42:27 -0500 Received: by pabur14 with SMTP id ur14so35923414pab.0 for ; Wed, 09 Dec 2015 13:42:27 -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=f7HiUQaljIIqCCv7pSscI5JxIPgBoyQ9mIHuyaM24W0=; b=Nz97uCPKoGhQ6/7t547OwzvS+RVwv3RycHLcX2Ned8FZ8SG/5z41W7iMLbUth7gP9v HVJTGnHivpS+MFuxgIgjUnCmIs/GO0KNAJLvT9yMqrwHC088tlpvYVmJqnQs1jA5xQXj h1Gu1WYcW+nkeBBnDQWMNUGRTzt5UrdkAO0sn/942j/JHhzTfF9V54cZaO91cufg1tjK bzBDADCruj5QRSPYOpAgzvKHF/ruFHMLf7fnFCMwjSnlbJdwFT8wKSSVeK8mP/LqT1J0 iasekHob5H9BKzF+IEB0CZJwjqfZpG3xi4ABe7xluSvNkzwuVf1VwzUHg11UY11ZfHj5 AUZA== 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=f7HiUQaljIIqCCv7pSscI5JxIPgBoyQ9mIHuyaM24W0=; b=U1P9zWYJ9v+RVqIPI0lpxli7v7Fvac9lS14jPXe1+VaU+z0mN6pDz2ib+GlSiKI0lL IemwkoXz91R2Ws1psFYlkNkpfdTHjcO9X+0uKNs+bTUDlfbBPS9POuQ/GxyCXWhHKHxe ucrCW9DnxqWb4aS/0zzHUglX542dmyiAuR8NkyK5B7oCQRaIOaV4gzCSFr3OdTho8e6r NzXda68IgvSeKqdn/FFAMtm8g2qgkaobTdC3cqT/QYrWpwOGnabysMoQHtEK8H+91tRm Xy1otnpI+wIt/Kis1v1kTsHa+80xcv7n4MJU0m8ZE+cs0zNZR7UprjQuj5lBf9itHZ0f 7pDQ== X-Gm-Message-State: ALoCoQlQpSZY0CVN4/PCcIZ4UfGCtEIkbdaTdkARLy7Z2UmeH3lgEFOTi0lQ+kQTkNMdwqe61C6aDvGqMUeOt2kRe1VCqwq6FA== X-Received: by 10.66.221.42 with SMTP id qb10mr11344386pac.51.1449697347263; Wed, 09 Dec 2015 13:42:27 -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 f76sm13717090pfd.49.2015.12.09.13.42.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 13:42: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 v5 6/7] sh: mm/gup: add gup trace points Date: Wed, 9 Dec 2015 13:22:30 -0800 Message-Id: <1449696151-4195-7-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449696151-4195-1-git-send-email-yang.shi@linaro.org> References: <1449696151-4195-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 | 6 ++++++ 1 file changed, 6 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..dc80480 100644 --- a/arch/sh/mm/gup.c +++ b/arch/sh/mm/gup.c @@ -14,6 +14,8 @@ #include #include +#include + static inline pte_t gup_get_pte(pte_t *ptep) { #ifndef CONFIG_X2TLB @@ -178,6 +180,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); + /* * This doesn't prevent pagetable teardown, but does prevent * the pagetables and pages from being freed. @@ -244,6 +248,8 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, } while (pgdp++, addr = next, addr != end); local_irq_enable(); + trace_gup_get_user_pages_fast(start, nr_pages); + VM_BUG_ON(nr != (end - start) >> PAGE_SHIFT); return nr;