Comment 9 for bug 1626269

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-09-24 08:25 EDT-------
Dump filtering for kernels v4.7+ is failing because of kernel commit 0139aa7b7fa1
which changed _count to _refcount in struct page. The below makedumpfile tool
commit fixes this:

commit 2c21d4656e8d3c2af2b1e14809d076941ae69e96
Author: Vitaly Kuznetsov <email address hidden>
Date: Fri Jun 17 18:41:26 2016 +0900

[PATCH v2] Support _count -> _refcount rename in struct page
_count member was renamed to _refcount in linux commit 0139aa7b7fa12
("mm: rename _count, field of the struct page, to _refcount") and this
broke makedumpfile. The reason for making the change was to find all users
accessing it directly and not through the recommended API. I tried
suggesting to revert the change but failed, I see no other choice than to
start supporting both _count and _refcount in makedumpfile.
Signed-off-by: Vitaly Kuznetsov <email address hidden>
--

Makedumpfile filtered dump successfully when the above commit is applied on top
of makedumpfile_1.6.0-2

# ./makedumpfile -l -d 31 /var/crash/201609230347/vmcore.201609230347 dump
The kernel version is not supported.
The makedumpfile operation may be incomplete.
Copying data : [100.0 %] /

The dumpfile is saved to dump.

makedumpfile Completed.
#
--

Thanks
Hari