From patchwork Wed Dec 9 17:29:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58176 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp824919lbb; Wed, 9 Dec 2015 09:51:22 -0800 (PST) X-Received: by 10.98.74.129 with SMTP id c1mr49243pfj.124.1449683482442; Wed, 09 Dec 2015 09:51:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 130si14021498pfb.52.2015.12.09.09.51.22; Wed, 09 Dec 2015 09:51: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 S1753323AbbLIRvT (ORCPT + 28 others); Wed, 9 Dec 2015 12:51:19 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33319 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbbLIRtW (ORCPT ); Wed, 9 Dec 2015 12:49:22 -0500 Received: by pabur14 with SMTP id ur14so33161422pab.0 for ; Wed, 09 Dec 2015 09:49:22 -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=uzSysd9Om8ktWl8t/EnFd35Mc4mrwNQrlVNHjXHchLY=; b=q3Uea3tv2B2YCsWwm/l8HEFUFMnr63FeATCZGSoNjA24z+fw+jkEGOAOwQ8uikruu+ x+0QQOD0uvRlAmbjftwdWpzrmo1LAWifDv9ACzQXybujLJk4KHF21laet2jgbPBxiVtA KLNJW2/ho2Ze7eoYF6+X3RuPXCo2+Mxinz43kPXFt1Wz3MRU0ciw34fAd7ZqfXK9234/ NcE4iHCg94sKSoQ0Tc5tDtBtx2WcCiQTkLGdzoFejpGnFF4NVL+coCcGxbnEteTG2aVD wlfMxJ2GNuzYPucNbYz5mZksnsOvDSrZaSCBTfK0EX5qlYVW+vDs9I3ELgKZx48U6JnO aOHw== 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=uzSysd9Om8ktWl8t/EnFd35Mc4mrwNQrlVNHjXHchLY=; b=gd3jtF2yDw+9mJsP3Wj+Iv1Z9Ws6g6CLmWK29jbDzqvcz2DO+hA6xB8KfTHiEkAlPW JJYDHjHJc4cuh6L9yP6hIWGdfb8goVTL0FaFV3aUlsRhZ5TIF5A+5CqBdUa3oeCD4v+G LtY1ImgPREeVIp6Pn1NXhN4bypmQ4EVV0TSRzxiKGQqmGhh4r3qS/9pHoyKELLPNs5vM sTFOv0ttWqFeP6eyeshCIluUxYncv22QpwuY14N6KtkveOI47vgLqYgnnYRTDPcz6U1e 293rKXQYr/pU1CAgRuvVs5XJgeJfStG1b1cTDJEwdNRvxAcjiVTZCghyYmm2O4CNDPUF waVQ== X-Gm-Message-State: ALoCoQkOOySbyEtI5EyHkjsUppDM2dyNpGkIdyaVL93xKgznArbC3BPmBjKY6WYdSIHwhkL2veQKXN8ZF/ARId5C8bZNRViL/A== X-Received: by 10.66.232.202 with SMTP id tq10mr9417025pac.156.1449683362421; Wed, 09 Dec 2015 09:49:22 -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 l20sm13049117pfi.10.2015.12.09.09.49.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 09:49:21 -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 v4 4/7] mips: mm/gup: add gup trace points Date: Wed, 9 Dec 2015 09:29:21 -0800 Message-Id: <1449682164-9933-5-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449682164-9933-1-git-send-email-yang.shi@linaro.org> References: <1449682164-9933-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..e0d8838 100644 --- a/arch/mips/mm/gup.c +++ b/arch/mips/mm/gup.c @@ -15,6 +15,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + static inline pte_t gup_get_pte(pte_t *ptep) { #if defined(CONFIG_PHYS_ADDR_T_64BIT) && defined(CONFIG_CPU_MIPS32) @@ -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); + /* * XXX: batch / limit 'nr', to avoid large irq off latency * needs some instrumenting to determine the common sizes used by @@ -291,6 +296,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; slow: