提交 b1746b99 编写于 作者: Y Yafang Shao 提交者: Linus Torvalds

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.comSigned-off-by: NYafang Shao <laoar.shao@gmail.com>
Acked-by: NMichal Hocko <mhocko@suse.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2b59e01a
...@@ -189,9 +189,9 @@ TRACE_EVENT(mm_compaction_try_to_compact_pages, ...@@ -189,9 +189,9 @@ TRACE_EVENT(mm_compaction_try_to_compact_pages,
__entry->prio = prio; __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->order,
__entry->gfp_mask, show_gfp_flags(__entry->gfp_mask),
__entry->prio) __entry->prio)
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册