From patchwork Tue Dec 8 19:39:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 57898 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp244022lbb; Tue, 8 Dec 2015 12:01:16 -0800 (PST) X-Received: by 10.98.73.10 with SMTP id w10mr7515238pfa.164.1449604876806; Tue, 08 Dec 2015 12:01:16 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si7059297pfi.252.2015.12.08.12.01.16; Tue, 08 Dec 2015 12:01:16 -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 S1752749AbbLHUBO (ORCPT + 28 others); Tue, 8 Dec 2015 15:01:14 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:33833 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752561AbbLHT76 (ORCPT ); Tue, 8 Dec 2015 14:59:58 -0500 Received: by pfbg73 with SMTP id g73so17426261pfb.1 for ; Tue, 08 Dec 2015 11:59:58 -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=uuN3yIp1vv99QITiW4ieMDFXsiGzKsurHMWBN7dv4YI=; b=1IxKFXF9zdGRaztDXhDT3eYp1EwZOe0HvFh0g4Qa3dA8zfiqag/ImUGtc89empaOPs oCGQotVv5V1NkG1Flcmqv/+iVYeq+iFsxyCXYM5pVP/vUyOuG0Y1XHiaCiYoEOS0CoCe dHNc5IjK1/f3GbxSdxnN68D4uVsrp8fpNwm1JAAuBTp8ilSf7oxIIoCYXC+eD9mXMZBL W/PC7LsWYV9PupK2H0orBcpgflcIb+YHhpIQODArilwgfUHIaEQ56Nb8OWfvqssXGsBn 0J5AugDebut1kfdIeyT5h6P3DnPpbJ6GYJdwHf/8qGc8/kQzqVmeHh44LFGhNeirkuFr Totw== 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=uuN3yIp1vv99QITiW4ieMDFXsiGzKsurHMWBN7dv4YI=; b=PhGD+AcjPUkOR4SwqBeXs0+mlHLdcI6SFedpTBcVhrQfHQJWMftNng7e7ViXvqs1p/ l1Icr/zmO1U8kxEFWu4b/8isXvb5j9UAvlPNvhbUeK+eZTY07YjH6Fv+05/Ds0t8TrI0 iTFj05iKRf3p9UCGB5OLee4DtuUl3sd7zy5bCtoJrPbMoaZ8xtJfyyUInJ0T8NlfoQca MKLn8uZF3IT4Ejs/AbSxgo0UPxIFIAJDQv6+z2GfLVl1ZFeQ5iFcbRcKrMad309YHOxF j+5p/gGYsJHe1JwAAqL4DFZO1Jn4VL/apWy4kZqZw64Qh/XwJ9tOn7awFwaygrysJR06 D4sg== X-Gm-Message-State: ALoCoQlDQLA7JI+1HNtYT8X163Wl5pElSc+8RNmGMCqkCuTshUGnoJrGlT6mjD6ijOvPTLZsipd9EWNZVwkzRXyvJvPpAQxqKQ== X-Received: by 10.98.13.211 with SMTP id 80mr7488908pfn.112.1449604798362; Tue, 08 Dec 2015 11:59:58 -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 25sm6479658pfp.62.2015.12.08.11.59.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Dec 2015 11:59:57 -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, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org Subject: [PATCH v3 5/7] s390: mm/gup: add gup trace points Date: Tue, 8 Dec 2015 11:39:53 -0800 Message-Id: <1449603595-718-6-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449603595-718-1-git-send-email-yang.shi@linaro.org> References: <1449603595-718-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: Martin Schwidefsky Cc: Heiko Carstens Cc: linux-s390@vger.kernel.org Signed-off-by: Yang Shi --- arch/s390/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/s390/mm/gup.c b/arch/s390/mm/gup.c index 12bbf0e..bbd82bf 100644 --- a/arch/s390/mm/gup.c +++ b/arch/s390/mm/gup.c @@ -12,6 +12,9 @@ #include #include +#define CREATE_TRACE_POINTS +#include + /* * The performance critical leaf functions are made noinline otherwise gcc * inlines everything into a single function which results in too much @@ -188,6 +191,9 @@ int __get_user_pages_fast(unsigned long start, int nr_pages, int write, end = start + len; if ((end <= start) || (end > TASK_SIZE)) return 0; + + trace_gup_get_user_pages_fast(start, (unsigned long) nr_pages); + /* * local_irq_save() doesn't prevent pagetable teardown, but does * prevent the pagetables from being freed on s390.