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: 7754531 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7DFC8BEEE1 for ; Wed, 2 Dec 2015 23:14:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3B362053F for ; Wed, 2 Dec 2015 23:14:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2E7420534 for ; Wed, 2 Dec 2015 23:14:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758112AbbLBXN7 (ORCPT ); Wed, 2 Dec 2015 18:13:59 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36850 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757049AbbLBXN1 (ORCPT ); Wed, 2 Dec 2015 18:13:27 -0500 Received: by pacdm15 with SMTP id dm15so53477065pac.3 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=QPJfRvfxKYOh2QQJkcWP6rM/ETAZxLGWqW1sy3y4BzsS43UgVvfYzmLHLUIdxSfxDc yfzS8nilkfeBkdgHGaJh2A6cTmPiSamvHH/svwOesiZITHs/veKmyD93C8PPwBL0tiQM C/JJx33xcQF06m088Y17b6H+FSQS1zBig/QS+4lMm78tW3LYz0kOLLn2p/TOYtscdqEm 4OE2iel+Njx1Cu1Ywu542XHTpVX7W51cMI7YzFBxPCaWA2P0HC4DNXI/17yMK7bGndot i4oPqE+OA2ypLOIH0w2f7KdmR2J3141rfBDS0BtzmXeLbn/D9jCC3vRqTiexw/QCRbZU D0LQ== X-Gm-Message-State: ALoCoQnRo7mxeFytQtK4EafmC2rBPlz2A1O0Wv5f7gRXfCeOGjLmeRMeYDCk+ZYgnA4pLfwtw2wP 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: linux-sh@vger.kernel.org Signed-off-by: Yang Shi --- arch/sh/mm/gup.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {