From patchwork Wed Dec 9 21:22:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58184 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp107060lbb; Wed, 9 Dec 2015 13:43:15 -0800 (PST) X-Received: by 10.98.44.193 with SMTP id s184mr1711051pfs.8.1449697394910; Wed, 09 Dec 2015 13:43:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si15151047pfj.127.2015.12.09.13.43.14; Wed, 09 Dec 2015 13:43: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 S1753414AbbLIVnN (ORCPT + 28 others); Wed, 9 Dec 2015 16:43:13 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34321 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753033AbbLIVm0 (ORCPT ); Wed, 9 Dec 2015 16:42:26 -0500 Received: by pacwq6 with SMTP id wq6so35724087pac.1 for ; Wed, 09 Dec 2015 13:42:26 -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=wlbR9/cn2Y6OlxcxCnjo79QZ4CrOjT30YA2+L9ZF0EQ=; b=S+y4EzRV134+LGNgW4d5wo0PXgGKpbxUVt5jIN0xu2Q9dY8JPo7OwLvMwKWY4zrwNA 29rpXzDHVRJ5HADXq84ndF02aUQWQMXO+jB3trMrL4HC7Ms7oUnf5n3yhj66DiPUfh56 XbuVynqpXHahR0pllGNl4L0S8yzhH8ODIEAvz/HGyWiZ1hQBJfypXHf5OliSNmrwbDUp vz33HJD75sY253rW5MKw2T1iAy9naFPihtQ2KcNNBdF7myjqShM7lfps8Hv0AkTLUQSo 4kBnv1zBuxYjrVIkYBcGANdOnhhkeS9VL2M50gGhRVIlAzc3D/0TSpFA5ZKOtN7X7vZn ntAQ== 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=wlbR9/cn2Y6OlxcxCnjo79QZ4CrOjT30YA2+L9ZF0EQ=; b=jsGYRkHdYNzQHosECLQvAdUxwO7HUJLIKPXuxRzl0+YQPeR5sdEQqfkBPL/kI1k/d3 e9TZUP+AR0gHiv7yMowXkMx2F9HIuXmQFUfE0TVAkcvGzs6mbj5a6Zay4mwQzdNAl/m2 sli03JZ0xSMVC+TRuhvjgz4gDXWSSWyUF8b3G86AFI1CMIO3HL3NsBuycEX5rJ5HV8yv +zeuqmejapg5tnIcJas9ObFSXiFe51nzk2zmsS0LFyb6ce+qFQOGAjUYj05U22vcgsl/ XMOZNFdWCWvXYiHiZTLrysQxnmHP5UVyzQT8LYsnsJIFlqIrcU7b+SWLjDJ1ailllIuf Px6w== X-Gm-Message-State: ALoCoQlkN0MR81Sn5rECJAOOVh4UbEYO0kTVbpXjhyUt/tDKYGZplttfr6JekUnvPclqdNBrcifIOxtognpHFPyFW+K1/G65jg== X-Received: by 10.66.142.136 with SMTP id rw8mr11484408pab.36.1449697346170; Wed, 09 Dec 2015 13:42:26 -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 f76sm13717090pfd.49.2015.12.09.13.42.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 13:42: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 v5 5/7] s390: mm/gup: add gup trace points Date: Wed, 9 Dec 2015 13:22:29 -0800 Message-Id: <1449696151-4195-6-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449696151-4195-1-git-send-email-yang.shi@linaro.org> References: <1449696151-4195-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 | 5 +++++ 1 file changed, 5 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..a1d5db7 100644 --- a/arch/s390/mm/gup.c +++ b/arch/s390/mm/gup.c @@ -12,6 +12,8 @@ #include #include +#include + /* * The performance critical leaf functions are made noinline otherwise gcc * inlines everything into a single function which results in too much @@ -188,6 +190,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); + /* * local_irq_save() doesn't prevent pagetable teardown, but does * prevent the pagetables from being freed on s390.