From patchwork Wed Dec 2 22:53:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 57584 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3175090lbb; Wed, 2 Dec 2015 15:14:08 -0800 (PST) X-Received: by 10.98.73.147 with SMTP id r19mr8638157pfi.39.1449098047893; Wed, 02 Dec 2015 15:14:07 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si7588353pfi.102.2015.12.02.15.14.07; Wed, 02 Dec 2015 15:14:07 -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 S1759089AbbLBXOA (ORCPT + 28 others); Wed, 2 Dec 2015 18:14:00 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36838 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758347AbbLBXN0 (ORCPT ); Wed, 2 Dec 2015 18:13:26 -0500 Received: by pacdm15 with SMTP id dm15so53476754pac.3 for ; Wed, 02 Dec 2015 15:13:25 -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=3PxWiTEJ9F8tMibzNX+PVO15H9YRbs5H6bku+sf03wA=; b=mdnla1Fhie2YQ8F3ZBYy/zYlxxqdDV7zSErPuZdiEIN994mnFV5GUgI6QHcxJtdvx7 bqTXd549ffXqB6GTMn1Mj9eof9tDQj3U5+zCDzfVyS1BqtmTokEOng6N+rjFmq8mXEMm mdKMPefRf5ItawHv3ZA9t/01k5UymvcuTbMGR1sXoL6B/UrXhABlPOgeVWU9Xc52/Qw+ ilHCdIHdu9yVAXDIHosY+8Cs2Qa3GjqTkSsmPlnXRzqPugambChw//9JOIUmYfTz7kT4 KP6UAAyZe6KjB2lHN2F4LIFDAUpCO8atUDFk95PAcI3w6egKfsq64IsCXfj0yh5aqKBD 7imQ== 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=3PxWiTEJ9F8tMibzNX+PVO15H9YRbs5H6bku+sf03wA=; b=W7tGOUnbsbCkXx1PENY4+EPIuA+MajI2LU+7E74ddhd+nG6B2S6LkMe4RAX83ZNaIV Ex/esAQKVvkHj4jbkxZcwBTxA8WpYONCPe9V/1+M4v8ud/k3yy/nEkGX57DMGxEg+q5Q 5UnIjbgiUO0xjao7UjZRj+mrCKKOY5e3oUfEFCwPxHNHvZfqtjf9rJkf9AnzCqq3Iq8+ UHZyFFtK3h9oGF5aOI4IGnnZQjMsFp9OT8/uzim37knk8qulYVdd+tocaJB/ygs5++m3 ErK/BMN8muV/4OH3w3Usjsr7upi3hOIevoBK+a2t24FJxD9iOJS7TwneJFF7dXHhDc30 1tcQ== X-Gm-Message-State: ALoCoQmoQ8vqVuuuJDER2MHVPcbxEzqia5xJn30Hy4QlZOeRxfXuF3MMphp3SKXmVSiLoeCRut/h X-Received: by 10.66.192.42 with SMTP id hd10mr8420730pac.111.1449098005805; Wed, 02 Dec 2015 15:13:25 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Dec 2015 15:13:25 -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 V2 5/7] s390: mm/gup: add gup trace points Date: Wed, 2 Dec 2015 14:53:31 -0800 Message-Id: <1449096813-22436-6-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: Martin Schwidefsky Cc: Heiko Carstens Cc: linux-s390@vger.kernel.org Signed-off-by: Yang Shi --- arch/s390/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/s390/mm/gup.c b/arch/s390/mm/gup.c index 12bbf0e..ac25e28 100644 --- a/arch/s390/mm/gup.c +++ b/arch/s390/mm/gup.c @@ -10,6 +10,10 @@ #include #include #include + +#define CREATE_TRACE_POINTS +#include + #include /* @@ -188,6 +192,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, nr_pages, write, pages); + /* * local_irq_save() doesn't prevent pagetable teardown, but does * prevent the pagetables from being freed on s390.