From: Yafang Shao Date: Tue, 14 May 2019 00:17:44 +0000 (-0700) Subject: mm: compaction: show gfp flag names in try_to_compact_pages tracepoint X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b1746b991d621e35151386224f455fd6c0d291f0;p=openwrt%2Fstaging%2Fblogic.git mm: compaction: show gfp flag names in try_to_compact_pages tracepoint Showing the gfp flag names instead of the gfp_mask makes trace more convenient. Link: http://lkml.kernel.org/r/1552527998-13162-1-git-send-email-laoar.shao@gmail.com Signed-off-by: Yafang Shao Acked-by: Michal Hocko Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h index 6074eff3d766..e66afb81815a 100644 --- a/include/trace/events/compaction.h +++ b/include/trace/events/compaction.h @@ -189,9 +189,9 @@ TRACE_EVENT(mm_compaction_try_to_compact_pages, __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) );