From patchwork Wed May 23 15:11:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 10421749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 472006032A for ; Wed, 23 May 2018 15:13:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3845428EB5 for ; Wed, 23 May 2018 15:13:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36B4829019; Wed, 23 May 2018 15:13:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B61C828EB5 for ; Wed, 23 May 2018 15:12:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 35C816B02AC; Wed, 23 May 2018 11:12:20 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 269166B02AD; Wed, 23 May 2018 11:12:20 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E24D6B02AE; Wed, 23 May 2018 11:12:20 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f197.google.com (mail-qk0-f197.google.com [209.85.220.197]) by kanga.kvack.org (Postfix) with ESMTP id D67046B02AC for ; Wed, 23 May 2018 11:12:19 -0400 (EDT) Received: by mail-qk0-f197.google.com with SMTP id t143-v6so13104523qke.18 for ; Wed, 23 May 2018 08:12:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=seBQ6x2TdISPYhTEBpwZ2bFobUBvuYR2yMrtR8Ztwmo=; b=fa0Flb9l8UrICMV4xC6IoOa9r+ud7amJTRkVXXclk0oiuXpUoWF0Jsjs6yrijD0Ey6 qBTGx0iPQLQzqlhyu+EwN6fQa6i/HckcqWWVPYlQadJZL33gwVM5UEbjxpC//zKudstj eDLha750D145ySVfsHQt5qCxoF98QBvb0FJoaq67vPOKVEfxMjRC2YZ7CYN5tYAWSRWG ke/i6hlaAoRS4Ec2vwe2F3YycCHHv9D/8kRJc96V1p+w1ZjM5nuaaVWhgBS2XeSKwnKD izDQSwYBIOsDjbpiAvjM72U0SXaAkXc3y9aA9OFmQs35aXWXHktkN4HQYla1fqRXWOf+ Kb5w== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ALKqPwfVW4c0heC46M5zLDCFAxsfCPKaOyJ187Olts9viunoR+yZ2pzg vMd7CRhBwLA+BvPp3S7sds380s8qqp9vs+TKzEEpetB4b0FIJNwDYlqV2JZAH9I4nu1XvIop9xN 5SffplcV9jqodlsLvBQOR83ZzCkLDnUwb7998p4dX5Fhg4w4HgqQbmVtQp6i7GpVFzw== X-Received: by 2002:ac8:43d5:: with SMTP id w21-v6mr2988756qtn.137.1527088339687; Wed, 23 May 2018 08:12:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqQEgb/nVgUHkEdvaeAgEnthFc6oToQLCHlRH8SH8w/3fejTNlkrXE+OKgkBmhoJvLIBVYY X-Received: by 2002:ac8:43d5:: with SMTP id w21-v6mr2988718qtn.137.1527088339222; Wed, 23 May 2018 08:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527088339; cv=none; d=google.com; s=arc-20160816; b=kklRsg8vQ6Gjr4TaTiHDWfT1kvbicmhUWRUbMXvXu/WYnuyMFK9roLQBetyAsad8jr E2/LsZz6iykjjmf9bQ+SqIjfGx5/kvtAWfRvbWkT68lTEVPqOqSClqEuhZobRxotcgJX BbjlgOcYuZU8DC7GtRsEb9M4lxQvLv9cUF8SFhhEuM+o0C2ZUJ3L2URPx28DqLnL6DjW B6vORzitbzYp9LHAkSAsPujoU+gFc6NFiCAN5z8ldBbiaCJwQQskqiUvE3is4lyKCClk dxgMTDG20VhuADPcK5k+taM8HN09p2Hfw8eQ0+dS/nuMcJNqbGCmFImi1RZ7/rwPYMJd UgUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=seBQ6x2TdISPYhTEBpwZ2bFobUBvuYR2yMrtR8Ztwmo=; b=gJmGsNqArdYzUdJCBd2AzTnTpFsDKH8I8ga5JMyNBfwGiRBbMRxTQoVWOrSRlrb/J0 k5lr4Q2PMmj/YiOhhmYmz75ZtM9CyiaQL+kKjm/56SWL5VpL0ts58BtiIQacrHwqJIUA MeFjQR7e8cbfoqLk9ZKvAFQcV6Vs4MWHtsexf4Br4phe+X1B0YRJvQEgvdCjwjVA2+VP VAVBXUzgREE0I3RKYVNnKM9hljnSpZ0G/O8mnFNK54UP4WnrR6Wz5ur1Hzv1Uf/RXyFf /DGnocLEn+XlXFic7ByKxpBc/5xLR9EmdfTWeSUS3Fe19n70naRQwuAPWFJOSTzljd7N s6/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id d7-v6si3115973qka.61.2018.05.23.08.12.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 08:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E5B7F818BAF8; Wed, 23 May 2018 15:12:18 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-112.ams2.redhat.com [10.36.116.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F1D010C564A; Wed, 23 May 2018 15:12:15 +0000 (UTC) From: David Hildenbrand To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, David Hildenbrand , Andrew Morton , Dave Young , Baoquan He , Hari Bathini , "Kirill A. Shutemov" Subject: [PATCH v1 04/10] kdump: include PAGE_OFFLINE_MAPCOUNT_VALUE in VMCOREINFO Date: Wed, 23 May 2018 17:11:45 +0200 Message-Id: <20180523151151.6730-5-david@redhat.com> In-Reply-To: <20180523151151.6730-1-david@redhat.com> References: <20180523151151.6730-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 23 May 2018 15:12:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 23 May 2018 15:12:18 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP This allows dump tools to skip pages that are offline. Cc: Andrew Morton Cc: Dave Young Cc: Baoquan He Cc: Hari Bathini Cc: "Kirill A. Shutemov" Signed-off-by: David Hildenbrand --- kernel/crash_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index f7674d676889..c0a45e9ba84e 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_core.c @@ -464,6 +464,7 @@ static int __init crash_save_vmcoreinfo_init(void) #ifdef CONFIG_HUGETLB_PAGE VMCOREINFO_NUMBER(HUGETLB_PAGE_DTOR); #endif + VMCOREINFO_NUMBER(PAGE_OFFLINE_MAPCOUNT_VALUE); arch_crash_save_vmcoreinfo(); update_vmcoreinfo_note();