mbox series

[0/2] mm: improve the output of print_page_info()

Message ID 20210115061349.67386-1-laoar.shao@gmail.com (mailing list archive)
Headers show
Series mm: improve the output of print_page_info() | expand

Message

Yafang Shao Jan. 15, 2021, 6:13 a.m. UTC
Before that patchset, the output of print_page_info() is
[ 6155.716018] INFO: Slab 0x000000004027dd4f objects=33 used=3 fp=0x000000008cd1579c flags=0x17ffffc0010200

While after it, the output is
[ 8843.757770] INFO: Slab 0x00000000f0e98335 objects=33 used=3 fp=0x00000000b643c7d8 flags=0x10200(slab|head)

The new one is more friendly and human readable.

Yafang Shao (2):
  mm, slub: use pGp to print page flags
  mm: introduce PAGE_FLAGS() to make output of page flags better

 include/linux/page-flags.h | 2 ++
 mm/slub.c                  | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)