From patchwork Tue Dec 1 23:06:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 57521 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2517774lbb; Tue, 1 Dec 2015 15:26:14 -0800 (PST) X-Received: by 10.67.5.98 with SMTP id cl2mr20803pad.157.1449012374094; Tue, 01 Dec 2015 15:26:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si275024pfa.33.2015.12.01.15.26.13; Tue, 01 Dec 2015 15:26:14 -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 S1757363AbbLAX0H (ORCPT + 28 others); Tue, 1 Dec 2015 18:26:07 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:34244 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757321AbbLAX0E (ORCPT ); Tue, 1 Dec 2015 18:26:04 -0500 Received: by padhx2 with SMTP id hx2so19965705pad.1 for ; Tue, 01 Dec 2015 15:26:03 -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=osqRJp/Sxf9b/CLQ5YoPEkAQbTY4NPqMQzrVHJDZS4s=; b=DspiZQCweLVx9eqV7fQ9EDy1vDwkz1GTrj6B+OBEh6ANFeMkgQ2UnaLNq+VOwCCDml 5NIxx0uzsFXM0o1yLeaPwdxrVEcInenAGp2OZ2ys7sIKuVYsFRoynsmLLvmep4cF92RA 5bNnggTORHgArdTXxUxMgzeMY186u+23Sb45ubBe6C+R1lLVCePFJpthxd+7F2p9J94i Y/dHXfl/cBwT3DjsCg37yG1xIZ2bJ9XWcuV3EZVO62i22c46Ha6En6usO+GC+slw7x6o HtcdDpNnF3uI3/3yqabO3c8S8CUxJnCwWfa68fvMX7hfWhF3vHblnpt6qLWM902y0h9a RSTw== 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=osqRJp/Sxf9b/CLQ5YoPEkAQbTY4NPqMQzrVHJDZS4s=; b=XhRLvIxTYfu52sOlrqDQkAcWpEk5Hwy576nHFSy1fiohT6E5dn0PjMLOwUy3BQd05e ny4o7KQnSTSr9zMPugvzXyj/uX2q4a9nUuwgBmEAOUaeY1arbrQHAtNrBfzdVhvypB/I p3P+bW4PUBMGzMWy1Y8zumrFUpqEmVpovSjijNj82y671K9/IbYHaQBMI+UlFEKdpX+4 igUatwVoAUwrffRWoZba2bGQr8fODCB9Z4kL8980xyv8Jg1YXf+nTWSM5FO9GPGPK2vg i37zYr/HvXovbRPLdAL0bIKT/FgdO9iWlmGILGuyZLkJ+PovmSG4sCJxV5p5YE2qP2SG 7hnQ== X-Gm-Message-State: ALoCoQlnixVXGEsMbP2m1QB6v9xBlygtBi75lMc0DLPTOlQCsZCUsnxUVUwgs6WI6Co9eLeCpICX X-Received: by 10.98.14.26 with SMTP id w26mr109032pfi.110.1449012363756; Tue, 01 Dec 2015 15:26:03 -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 sz9sm108777pab.13.2015.12.01.15.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2015 15:26:03 -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, Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH 4/7] mips: mm/gup: add gup trace points Date: Tue, 1 Dec 2015 15:06:14 -0800 Message-Id: <1449011177-30686-5-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449011177-30686-1-git-send-email-yang.shi@linaro.org> References: <1449011177-30686-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: Ralf Baechle Cc: linux-mips@linux-mips.org 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);