Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1318730

How you tested this patch(8c7f010)

From Zhizhou Tian <zhizhou.tian@linaro.org>
Newsgroups linux.kernel
Subject How you tested this patch(8c7f010)
Date 2016-01-27 08:40 +0100
Message-ID <qVsRQ-8v1-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

How you tested this patch(8c7f010) Zhizhou Tian <zhizhou.tian@linaro.org> - 2016-01-27 08:40 +0100

csiph-web