Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754840Ab3JHIGP (ORCPT ); Tue, 8 Oct 2013 04:06:15 -0400 Received: from mga02.intel.com ([134.134.136.20]:12116 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754491Ab3JHIGL (ORCPT ); Tue, 8 Oct 2013 04:06:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.90,1055,1371106800"; d="scan'208";a="407076073" Date: Tue, 8 Oct 2013 16:06:04 +0800 From: Fengguang Wu To: Anatol Pomozov Cc: LKML , gthelen@google.com, Dave Anderson Subject: Re: mm: Export 'pageflag_names' array Message-ID: <20131008080604.GA4820@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 32 Hi Anatol, On Mon, Oct 07, 2013 at 10:53:32AM -0700, Anatol Pomozov wrote: > Hi Wu > > I have a request wrt your old commit 718a38211. > > I think it makes sense to export array pageflag_names so kernel dump > debug tools (like 'crash') can use it as well. Currently the tool > hard-codes flag names but it is suboptimal as flags are different for > different configs. > > What do you think? (I can send a patch if you are ok). I wonder if the KPF_* defined in include/uapi/linux/kernel-page-flags.h fit your needs. These are kernel page flags exported to the user space and will be maintained stable and immune to kconfig changes. You can find use examples of them in fs/proc/page.c tools/vm/page-types.c Thanks, Fengguang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/