From patchwork Wed Jan 27 07:37:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhizhou Tian X-Patchwork-Id: 60593 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2427262lbb; Tue, 26 Jan 2016 23:37:44 -0800 (PST) X-Received: by 10.98.66.157 with SMTP id h29mr1095742pfd.91.1453880264418; Tue, 26 Jan 2016 23:37:44 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v88si7649624pfa.213.2016.01.26.23.37.43; Tue, 26 Jan 2016 23:37:44 -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=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753851AbcA0Hhm (ORCPT + 30 others); Wed, 27 Jan 2016 02:37:42 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38775 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753474AbcA0Hhj (ORCPT ); Wed, 27 Jan 2016 02:37:39 -0500 Received: by mail-wm0-f52.google.com with SMTP id p63so12516229wmp.1 for ; Tue, 26 Jan 2016 23:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=+nY5h9Gc4k1h6Ye59tIhoz1YGDGiDOvMV9KZ3w+w+3k=; b=WSwHFWWXT6FpEqhbY2vKNUU/Es/6ddFOQMbARqXNb+uCPuip6EgP4jikXgI2qoDUTC Dd+lJ2gIu+StaCbJNsn/0u3zOuHCUEoDSSgy66IwidHHnlSM3Ao2TyakxmZHOgjw3bBH Za6KPrVrRCpXFG06OrWJXbK7z2NFJGsk40Krk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=+nY5h9Gc4k1h6Ye59tIhoz1YGDGiDOvMV9KZ3w+w+3k=; b=il0ZVwE9PIG7lUmbcp1Am4pn98wbhtDr3yOdIdnsoAGwPE+J6S1m296sUVY+bMrKP+ hLkPa1scNE9BWDfLfXQiTIw1ajps0M6P5UHxXpe5TZD+ZaUBk/anO58YxNJX/txH+IqJ 8t0Uu8AGIp2c0tp9hv1lFfrW4WZ6qQevoMzsHlqh8Oy9i1rF0ufEUKXKiFmC7Gfd5rFg xy00N1Ga8AEjwhgYK46f57emBl/7058dctjcGkaVeQ7CxJWQ+7NM2t/5YjVCPM5UC+xe yiXfnlKSoRtHDVqlUZ7JElq58jm6jzUxY4CiR7SnsAGep6HI8vxCxtabWHpBU6e7P/qR 92yA== X-Gm-Message-State: AG10YOSVjgACjUVJWsneDxwfYaIZp0T1cEjwXPfw2euciBdgbN1YS5Pbk2YYYwuzrqGHd2mVgXjZ0IsAkGgxEC2H MIME-Version: 1.0 X-Received: by 10.194.119.68 with SMTP id ks4mr26862260wjb.45.1453880258744; Tue, 26 Jan 2016 23:37:38 -0800 (PST) Received: by 10.28.212.85 with HTTP; Tue, 26 Jan 2016 23:37:38 -0800 (PST) Date: Wed, 27 Jan 2016 15:37:38 +0800 Message-ID: Subject: How you tested this patch(8c7f010) From: Zhizhou Tian To: karam.lee@lge.com, Chunyan Zhang Cc: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, Karam: I back ported "zram: implement rw_page operation of zram"(8c7f010) to linux3.10 on Spreadtrum tshark board. I test this patch with following code: mm/page_io.c | 6 ++++++ 1 file changed, 6 insertions(+) } But I am not sure the result means something. Can you share your method? thanks;) diff --git a/mm/page_io.c b/mm/page_io.c index 4e1c1c8..1556fc4 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -232,6 +232,7 @@ bad_bmap: int swap_writepage(struct page *page, struct writeback_control *wbc) { int ret = 0; + ktime_t stime, etime; if (try_to_free_swap(page)) { unlock_page(page); @@ -243,7 +244,12 @@ int swap_writepage(struct page *page, struct writeback_control *wbc) end_page_writeback(page); goto out; } + stime = ktime_get(); ret = __swap_writepage(page, wbc, end_swap_bio_write); + etime = ktime_get(); + + pr_err("zhizhou.tian: execute swap time with page_io : %lld nsec.\n", + etime.tv64 - stime.tv64); out: return ret;