Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3635224imc; Thu, 14 Mar 2019 01:31:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzfli46bfjv3PwMN8dV/u7NnK193uH8FwkrOdIbDvsep/Fk1Wwdq8Xo6fXvkd9dueVn5KH X-Received: by 2002:a63:c34a:: with SMTP id e10mr43822835pgd.194.1552552301900; Thu, 14 Mar 2019 01:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552552301; cv=none; d=google.com; s=arc-20160816; b=XgzfP7r5YfvBzJ0i0Kgt2DlnMBF15bS0SjdxSPe4fTeej6HM79d9fFpIeJ2WGBh17z aY9ibAgscr+THkXp+GkZvRKUZ8uCNj4s7wM2UrVk3PMEHoDItIHQ6O9emoBYMwoOd6AI A+ditUuJcyM+svJiEKVTZdWT46L/974pum8TiY53WzWTEEo3xiPUR6+yD+8ye5+RoE7e LKBDv/Yh2GLPuT9TKcn2uKnsQ1CuPI0mzsjgu6rEQ+wr1Mn7QMgRb4rDJYO/wUJ2bZjx c3MIGMs7ObrlDxlyzajpPm23k+r0ifQ/xmUHXq1czBB0wy2/VqiO3cxYniSTEFBj4DZQ Nyeg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=FJBXiu24THUCeR7dgdwrm4o+o3aw5Az5+ZxavG0s5XQ=; b=OVs9t0Zdy5T6RfGcF9rUjQBZaqJ1do6lrfj1VJBZjyzZNSar7xpGorfK7ZjwFWZ4Bs GGsEBa54aLhrGLfdFV1TFzb8COYKLk8qdJ5g0pUFiXAuuE1IU0uuYacmicX9stdVoNFn SDEzWP5HaV8ee5It0LSmmo/xDAMaIKEyWy2OtHBowXEK4G8G8nMcbKnJVqtN9Wm7lVLo egEtbgGa1mWgtZFt5rvddDC3gU+72yuAdEgtZ1QESk/GG2RehGC2PkYCqahshnRQJ20Y zyui/C4PuT/Gp92QLSripWfzS1xkm2soFirmDb7Ar3e6O8dEYNCugJ3Ms2nf8B54YCel u3JQ== 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 y1si12003018pgf.32.2019.03.14.01.31.26; Thu, 14 Mar 2019 01:31:41 -0700 (PDT) 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 S1727268AbfCNIao (ORCPT + 99 others); Thu, 14 Mar 2019 04:30:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:49886 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726292AbfCNIao (ORCPT ); Thu, 14 Mar 2019 04:30:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D52EEAD4E; Thu, 14 Mar 2019 08:30:42 +0000 (UTC) Subject: Re: [PATCH] mm: compaction: show gfp flag names in try_to_compact_pages tracepoint To: Yafang Shao , mhocko@suse.com, jrdr.linux@gmail.com Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, shaoyafang@didiglobal.com References: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> From: Vlastimil Babka Message-ID: <75d7cff9-add2-20f4-ae3e-2d99048c6614@suse.cz> Date: Thu, 14 Mar 2019 09:30:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2 MIME-Version: 1.0 In-Reply-To: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/19 5:38 AM, Yafang Shao wrote: > show the gfp flag names instead of the gfp_mask could make the trace > more convenient. > > Signed-off-by: Yafang Shao Acked-by: Vlastimil Babka > --- > include/trace/events/compaction.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h > index 6074eff..e66afb818 100644 > --- a/include/trace/events/compaction.h > +++ b/include/trace/events/compaction.h > @@ -189,9 +189,9 @@ > __entry->prio = prio; > ), > > - TP_printk("order=%d gfp_mask=0x%x priority=%d", > + TP_printk("order=%d gfp_mask=%s priority=%d", > __entry->order, > - __entry->gfp_mask, > + show_gfp_flags(__entry->gfp_mask), > __entry->prio) > ); > >