From patchwork Tue Dec 1 23:06:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 57525 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2518158lbb; Tue, 1 Dec 2015 15:27:11 -0800 (PST) X-Received: by 10.66.232.170 with SMTP id tp10mr144329pac.38.1449012431606; Tue, 01 Dec 2015 15:27:11 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kk7si199078pab.220.2015.12.01.15.27.10; Tue, 01 Dec 2015 15:27:11 -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 S932170AbbLAX1J (ORCPT + 28 others); Tue, 1 Dec 2015 18:27:09 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:34840 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757323AbbLAX0F (ORCPT ); Tue, 1 Dec 2015 18:26:05 -0500 Received: by pacej9 with SMTP id ej9so19930648pac.2 for ; Tue, 01 Dec 2015 15:26:04 -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=x6+UViQc+NCTxiNFMJ89CzegmnJuncsZWSfD/rWKU5mlVq2AE2V/o/ZT74y/BW4XpG WmcqDMbdP88PbVzg2tinFgw8AdzOgICiFqBsVIF8rIKyVMBtwNc5j7XVvhpAhGWgKBst 0HTnR0cIX0XZ+0QizKZZ4KAJQRS8kLPqJuhbd8uMKEwxQgzeCs2D2be6iLlpb0PEp3Hf /4Ls4Ypnq0KmMNfkfFXC8vMU71DsM1VYKkFoHVkzSXc9XDzbPgYgqEAAP8pWGTIHuVSC uNvemHjk6N44FIvii/fTamSf0LsZ0NDY5/JjScnrC/VSPLdg7DGKAsl8aqJ5UelBcKv5 ne1Q== 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=TjwpHOHqGJdxzDmssSCCeReFNrMLIqXdysABMn/u2LjfSDTj4x/ox6NfF84vvdr4/4 n3FGPpxzfoo4kKf/VxlPvD/z5bxjSALzGc+FbKkisoKuiDyVggyE6Qhyn6kB3nupCyak /7B/sMmoqGzeQwaAUknZbOFF9DeX0JTEZiBS+57rvTAgLPfsHYioB5In88zzRdJh6JAD e/eVwGx8lDMp7MZu5tiEWQHV4QqwHPH6Q9q8Ayih/tMbw9lwJ2f2oFA1to67cGtFfwgQ +PdF2IxEoQb13VugoGmgTwsXSnTYiTCIgSeQ15Rt1VAQ26aAQWNwIH+Wog9noEhLrF+s hPrg== X-Gm-Message-State: ALoCoQl365cNN1v3ES2PJ1jvRrZe8NMlfgITyV70Xy42ArkOCdMCqaoXpL7FdBIHYtxiZWSRsVW9 X-Received: by 10.98.13.218 with SMTP id 87mr44322pfn.153.1449012364735; Tue, 01 Dec 2015 15:26:04 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Dec 2015 15:26:04 -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 5/7] s390: mm/gup: add gup trace points Date: Tue, 1 Dec 2015 15:06:15 -0800 Message-Id: <1449011177-30686-6-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: 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.