From patchwork Wed Dec 2 22:53: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: 57585 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3175182lbb; Wed, 2 Dec 2015 15:14:22 -0800 (PST) X-Received: by 10.98.8.136 with SMTP id 8mr8708603pfi.16.1449098062320; Wed, 02 Dec 2015 15:14:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q143si7563621pfq.191.2015.12.02.15.14.21; Wed, 02 Dec 2015 15:14:22 -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 S1759146AbbLBXOU (ORCPT + 28 others); Wed, 2 Dec 2015 18:14:20 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36824 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758213AbbLBXNZ (ORCPT ); Wed, 2 Dec 2015 18:13:25 -0500 Received: by pacdm15 with SMTP id dm15so53476403pac.3 for ; Wed, 02 Dec 2015 15:13:24 -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=vVHPaTQerbTD2JvQX+Si+mQovKI7ynbHnNaKg+gyvU8=; b=hzhQyjEYd2htj0EBOXLcFRYOfMrilsgyxciSv1t/tMH5mN7n4+aUqVTFeliRr6I8O9 PZSXesI9EcoBBrv4gXf/jiPiWSZfGOPq0rpzoKqUszYl0cWi92NkGR60hTBKmJ+hxTcY Tixw9GPE2NxOMyobBpNcm2VplcIpLTfhobDzVOhQddACX3Zr2iQ60dG6he3OU76n0faM qI+AJ5G0w+IYwNzeUOVOgeb2PYGNjMkWHx9MBQb1mxIXLaqkk2jQUqYx8EMDkskAHcgY 4jVcrvhzXDXt0jCYDYg3BakFFOMA8MSmMbjJr4afhX3TnlVPWDdmeBSjcfMz0NZCx+vb RlSg== 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=vVHPaTQerbTD2JvQX+Si+mQovKI7ynbHnNaKg+gyvU8=; b=cs6FmsZme9LXIbUQNm632mcPtEk21b7bEhT1XzgmiBEGADCrGZdEPON2n0c91MW7TZ t7pSBNzqwr/ouckFlZ16BpnYUO4/NPPcoPR+c+PgfEvbnTjgexLo/+KyD9ThHcYtTzSz 2AaDVnLaFj0mFmaTtpjAW8zxKa7zkLWaiDcMg4ryMDtjXsxJgVoXhKAaawn6GjshDhKV S3ts11r4V1TGZ8W+Mapsk1W56iTgMQWApNHzr8C0lPq4cG8CprcXGGKtLQVlow9MGIH5 GqiFJ9uy4+c4mBSj8N7ZabN4goFR/jXspI+xK29uuPRVqeiaknu1ZbaOS67DlwPxdibO 06Gw== X-Gm-Message-State: ALoCoQnjtMsyEKNv/L4cZRCFKqjFLFC6kkJFdmbEWnUfsIgPJUVq52YxUsm6YK+0M7/AnleX1mBC X-Received: by 10.98.80.198 with SMTP id g67mr8467585pfj.107.1449098004805; Wed, 02 Dec 2015 15:13:24 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2015 15:13:24 -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-mips@linux-mips.org Subject: [PATCH V2 4/7] mips: mm/gup: add gup trace points Date: Wed, 2 Dec 2015 14:53:30 -0800 Message-Id: <1449096813-22436-5-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-mips@linux-mips.org Acked-by: Ralf Baechle Signed-off-by: Yang Shi --- arch/mips/mm/gup.c | 7 +++++++ 1 file changed, 7 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/mips/mm/gup.c b/arch/mips/mm/gup.c index 349995d..3c5b8c8 100644 --- a/arch/mips/mm/gup.c +++ b/arch/mips/mm/gup.c @@ -12,6 +12,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + #include #include @@ -211,6 +214,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); + /* * XXX: batch / limit 'nr', to avoid large irq off latency * needs some instrumenting to determine the common sizes used by @@ -277,6 +282,8 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write, if (end < start || cpu_has_dc_aliases) goto slow_irqon; + trace_gup_get_user_pages_fast(start, nr_pages, write, pages); + /* XXX: batch / limit 'nr' */ local_irq_disable(); pgdp = pgd_offset(mm, addr);