Received: by 10.223.176.5 with SMTP id f5csp686026wra; Tue, 30 Jan 2018 17:49:47 -0800 (PST) X-Google-Smtp-Source: AH8x226ASNEneRux8R0TPQTHY26HPkB0NVZpoLEwnkOYGiXeSMQHIiKTVknNgu8uY0mjsCEtO+oe X-Received: by 2002:a17:902:67c5:: with SMTP id g5-v6mr23217953pln.106.1517363387333; Tue, 30 Jan 2018 17:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517363387; cv=none; d=google.com; s=arc-20160816; b=BA7iMPIGMOkLhkCg6w+4ZdwYTdEqUtLr0ic1axv1unNIN6P/4Oa/xmLOy61zrS9cHi EjwW29Uc4Sb399hWzsaZjHumGKYpiAgHHvgm/WG+WmMKLcYzZVWbYxRi/F2ZGicR3x4l CGZ/XuduCKIQvLflrvVqKxswz/UXbMm8/PM7WoYUjbE1oV23gQn2XXdqJuTys7ZkqlYS If/rCiryJpECoYOJdBJfTPdl6UuWG29352LKLtGp2IvdKsjs8tedZxnI8YmZcw55/HWs GLAtWdt9gkOey6EWDLZRXq2FWgwMzIrQ3vzKO19MXEY23f/QVuZpk1+HBNdn3sCyusOz 1JBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=0r1TfoZQ2vLoFNUg8SiERZo3p/gMR+hhhaDexHHPeAA=; b=jgUscCjHihwJnJbdulmQF9Y9luouKKFHMdXN9m6XqZuDBamJjkeW/WNAMZeJUok8nu KuaIeFjE1whA2Rwbhc9Go0WIzj8hNgGxCVw08JkqD6RY3KZCsqQVvRtlJkL8h7VyTwyQ lvK4coEGGHnWBI5zTCHBaXMiESi05Bm9F1Q0/QTxykBhGzy4RRFsYLoZ7AkD3TGoj3gO Bg4ZHk/RC0MUf6g4bsrTlKsLQlFUBj2cHCERuJdkyFomdJtj1vFajc7bj0CrzQDXO+4R YssxBWMxdEkZoFEFEZ2cCM36a0dsg+RKt+NIr0buBgQIZH3hgNpNgR41MUrDQwpDlnF8 3C9Q== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i68si1003645pfa.238.2018.01.30.17.49.32; Tue, 30 Jan 2018 17:49:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754230AbeAaAAo (ORCPT + 99 others); Tue, 30 Jan 2018 19:00:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44384 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753148AbeAaAAn (ORCPT ); Tue, 30 Jan 2018 19:00:43 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.92]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D77DAF89; Wed, 31 Jan 2018 00:00:42 +0000 (UTC) Date: Tue, 30 Jan 2018 16:00:41 -0800 From: Andrew Morton To: David Rientjes Cc: Naoya Horiguchi , Konstantin Khlebnikov , Vladimir Davydov , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch] tools, vm: new option to specify kpageflags file Message-Id: <20180130160041.ced8e9bbb4741494147f476f@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jan 2018 15:01:01 -0800 (PST) David Rientjes wrote: > page-types currently hardcodes /proc/kpageflags as the file to parse. > This works when using the tool to examine the state of pageflags on the > same system, but does not allow storing a snapshot of pageflags at a given > time to debug issues nor on a different system. > > This allows the user to specify a saved version of kpageflags with a new > page-types -F option. > This, methinks: --- a/tools/vm/page-types.c~tools-vm-new-option-to-specify-kpageflags-file-fix +++ a/tools/vm/page-types.c @@ -791,7 +791,7 @@ static void usage(void) " -N|--no-summary Don't show summary info\n" " -X|--hwpoison hwpoison pages\n" " -x|--unpoison unpoison pages\n" -" -F|--kpageflags kpageflags file to parse\n" +" -F|--kpageflags filename kpageflags file to parse\n" " -h|--help Show this usage message\n" "flags:\n" " 0x10 bitfield format, e.g.\n" _