lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAA3R1RNcNJB0ggAA+Om2gS5pbEjCgzUuTENDkxMs6AD9oS0xVw@mail.gmail.com>
Date:	Wed, 27 Jan 2016 15:37:38 +0800
From:	Zhizhou Tian <zhizhou.tian@...aro.org>
To:	karam.lee@....com, Chunyan Zhang <zhang.chunyan@...aro.org>
Cc:	linux-kernel@...r.kernel.org
Subject: How you tested this patch(8c7f010)

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(+)

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;
 }

But I am not sure the result means something.
Can you share your method?
thanks;)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ