From patchwork Wed Dec 9 17:29:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 58173 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp824075lbb; Wed, 9 Dec 2015 09:49:48 -0800 (PST) X-Received: by 10.67.5.2 with SMTP id ci2mr9732578pad.47.1449683388846; Wed, 09 Dec 2015 09:49:48 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si13946320pfi.237.2015.12.09.09.49.48; Wed, 09 Dec 2015 09:49:48 -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 S1753253AbbLIRtc (ORCPT + 28 others); Wed, 9 Dec 2015 12:49:32 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34999 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753061AbbLIRtY (ORCPT ); Wed, 9 Dec 2015 12:49:24 -0500 Received: by pacej9 with SMTP id ej9so33175710pac.2 for ; Wed, 09 Dec 2015 09:49:23 -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=QxNR3JALHfBDU+JqHwou7xA4yeySewVCVaDkhsRmMi0=; b=LGRuK9ROxxO6F2WqsJLUyXRbSlZeXulm2P5Gs8EKRE1LVcnckNU6TZR8RLr47GxaxX 02ysdhhDiGkkYpHu0/N7K9Z5Om/zTx/1fez8FPI6rrNhZL69vKUNr8Ucen7gPuKNaDBv iXPcfkz0EinO3i0to6kDDRKVW+/2zLG2RP6J4cQ1KbKDDNjmN8PtLphTYcKpYUwfJu/n f5GfkYsytyt18t0PvKHIeIHXYmhFzCCbnGoFfSFJrtwEEBgNV2IUSWzBC5XRGjphtx8u GUAmxm8XNPxVTOw/hAGnKz0tIhQfpVRQiTDBBBLm/3uPb7f3kGQl2FW6lLjKv3+ahQ4c nlJg== 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=QxNR3JALHfBDU+JqHwou7xA4yeySewVCVaDkhsRmMi0=; b=XUE6GWHvlCI3D1FnFX1z1cg/ggEMv0J/l4JwxmR1+n1hcMyRij30ENY/fa0r71GUAw HID1vfp4pFzB02GiBmJKj5DP9df+TaRo4hgISLJ8xC7rj4GiLjB+DvekoiDrbOxN9yUa 1+eqKJl+hIi7Zd2W4CxsJoT1ua/ethEzekX7qF1HJLHLEwo5p16yVg4ttp5i7gcIqYcj QlbOtjZxkDy66her/lBqFJOcNMLF8pYlgq3SuteM7jxkrKG6EZpA1wX95T1lkeMs6L20 yM4ursQmANFTUdWowfha661Sr2oSmIyiOwJzgJYlMWdY0HydN38U1BcTZQwDFyBnAFgy LKjQ== X-Gm-Message-State: ALoCoQn7kwD4S8+XWWca5EVyx+JXVBK7v2d8jIo8DTDQBu1V6/G7FgVEpPeHvjMw5aqRYITWkhFzisaZMP+aLgfYKFm+LMCXdg== X-Received: by 10.66.219.39 with SMTP id pl7mr9849385pac.88.1449683363507; Wed, 09 Dec 2015 09:49:23 -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 l20sm13049117pfi.10.2015.12.09.09.49.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2015 09:49:22 -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 v4 5/7] s390: mm/gup: add gup trace points Date: Wed, 9 Dec 2015 09:29:22 -0800 Message-Id: <1449682164-9933-6-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1449682164-9933-1-git-send-email-yang.shi@linaro.org> References: <1449682164-9933-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..0ff7e92 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, nr_pages); + /* * local_irq_save() doesn't prevent pagetable teardown, but does * prevent the pagetables from being freed on s390.