[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <75d7cff9-add2-20f4-ae3e-2d99048c6614@suse.cz>
Date: Thu, 14 Mar 2019 09:30:42 +0100
From: Vlastimil Babka <vbabka@...e.cz>
To: Yafang Shao <laoar.shao@...il.com>, mhocko@...e.com,
jrdr.linux@...il.com
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, shaoyafang@...iglobal.com
Subject: Re: [PATCH] mm: compaction: show gfp flag names in
try_to_compact_pages tracepoint
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 <laoar.shao@...il.com>
Acked-by: Vlastimil Babka <vbabka@...e.cz>
> ---
> 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)
> );
>
>
Powered by blists - more mailing lists