From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933383AbcLNROY (ORCPT ); Wed, 14 Dec 2016 12:14:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:42543 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932302AbcLNROW (ORCPT ); Wed, 14 Dec 2016 12:14:22 -0500 Subject: Re: [PATCH 1/3] mm, trace: extract COMPACTION_STATUS and ZONE_TYPE to a common header To: Michal Hocko , Andrew Morton References: <20161214145324.26261-1-mhocko@kernel.org> <20161214145324.26261-2-mhocko@kernel.org> Cc: David Rientjes , Johannes Weiner , linux-mm@kvack.org, LKML , Michal Hocko From: Vlastimil Babka Message-ID: <1a4894b1-4caf-97c5-9e75-018b89307103@suse.cz> Date: Wed, 14 Dec 2016 18:14:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20161214145324.26261-2-mhocko@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14/2016 03:53 PM, Michal Hocko wrote: > From: Michal Hocko > > COMPACTION_STATUS resp. ZONE_TYPE are currently used to translate enum > compact_result resp. struct zone index into their symbolic names for > an easier post processing. The follow up patch would like to reuse > this as well. The code involves some preprocessor black magic which is > better not duplicated elsewhere so move it to a common mm tracing relate > header. > > Signed-off-by: Michal Hocko Acked-by: Vlastimil Babka From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f198.google.com (mail-wj0-f198.google.com [209.85.210.198]) by kanga.kvack.org (Postfix) with ESMTP id 189E16B0253 for ; Wed, 14 Dec 2016 12:14:23 -0500 (EST) Received: by mail-wj0-f198.google.com with SMTP id o3so12797540wjo.1 for ; Wed, 14 Dec 2016 09:14:23 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id 199si8165546wmm.166.2016.12.14.09.14.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 14 Dec 2016 09:14:21 -0800 (PST) Subject: Re: [PATCH 1/3] mm, trace: extract COMPACTION_STATUS and ZONE_TYPE to a common header References: <20161214145324.26261-1-mhocko@kernel.org> <20161214145324.26261-2-mhocko@kernel.org> From: Vlastimil Babka Message-ID: <1a4894b1-4caf-97c5-9e75-018b89307103@suse.cz> Date: Wed, 14 Dec 2016 18:14:20 +0100 MIME-Version: 1.0 In-Reply-To: <20161214145324.26261-2-mhocko@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Michal Hocko , Andrew Morton Cc: David Rientjes , Johannes Weiner , linux-mm@kvack.org, LKML , Michal Hocko On 12/14/2016 03:53 PM, Michal Hocko wrote: > From: Michal Hocko > > COMPACTION_STATUS resp. ZONE_TYPE are currently used to translate enum > compact_result resp. struct zone index into their symbolic names for > an easier post processing. The follow up patch would like to reuse > this as well. The code involves some preprocessor black magic which is > better not duplicated elsewhere so move it to a common mm tracing relate > header. > > Signed-off-by: Michal Hocko Acked-by: Vlastimil Babka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org