Skip to content

mm, vsprintf: dump full information of page flags in pGp

Yafang Shao linux-mm lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest posting 2/23 patches 5 repliesIn review
  2. v6 posting 1/23 patches 1 replySuperseded
  3. v53 patches 7 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches12 repliesSuperseded
v33 patches9 repliesSuperseded
v23 patches16 repliesSuperseded
v13 patches16 repliesSuperseded

Changes in v6 from the cover letter

- fixes the build failure and test failure reported by kernel test robot

Patches in v6 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm, slub: use pGp to print page flagsmm/slub.c+3 -20 replies
2/3mm, slub: don't combine pr_err with INFOmm/slub.c+5 -50 replies
3/3vsprintf: dump full information of page flags in pGpDocumentation/core-api/printk-formats.rst lib/test_printf.c lib/vsprintf.c+142 -161 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid HildenbrandVlastimil BabkaDavid RientjesChristoph LameterMatthew Wilcox (Oracle)Miaohe LinAndy ShevchenkoSergey SenozhatskyPetr Mladek
SeriesR-b
1/3R-b R-b A-b A-b R-b R-b R-b
2/3R-b A-b A-b R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.

Read the v6 thread

Cover letter [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

The existed pGp shows the names of page flags only, rather than the full information including section, node, zone, last cpuipid and kasan tag. While it is not easy to parse these information manually because there are so many flavors. We'd better interpret them in printf.

To be compitable with the existed format of pGp, the new introduced ones also use '|' as the separator, then the user tools parsing pGp won't need to make change, suggested by Matthew. The new added information is tracked onto the end of the existed one, e.g.

[ 8838.835456] Slab 0x000000002828b78a objects=33 used=3 fp=0x00000000d04efc88 flags=0x17ffffc0010200(slab|head|node=0|zone=2|lastcpupid=0x1fffff)

The documentation and test cases are also updated. The result of the test cases as follows,

[68599.816764] test_printf: loaded.
[68599.819068] test_printf: all 388 tests passed
[68599.830367] test_printf: unloaded.

This patchset also includes some code cleanup in mm/slub.c.

v6:
- fixes the build failure and test failure reported by kernel test robot

v5:
- remove the bitmap and better name the struct, per Petr

v4:
- extend %pGp instead of introducing new format, per Matthew

v3:
- coding improvement, per Joe and Andy
- the possible impact on debugfs and the fix of it, per Joe and Matthew
- introduce new format instead of changing pGp, per Andy

v2:
- various coding improvement, per Joe, Miaohe, Vlastimil and Andy
- remove the prefix completely in patch #2, per Vlastimil
- Update the test cases, per Andy

Yafang Shao (3):
mm, slub: use pGp to print page flags
mm, slub: don't combine pr_err with INFO
vsprintf: dump full information of page flags in pGp

 Documentation/core-api/printk-formats.rst |  2 +-
 lib/test_printf.c                         | 90 ++++++++++++++++++++---
 lib/vsprintf.c                            | 66 +++++++++++++++--
 mm/slub.c                                 | 13 ++--
 4 files changed, 149 insertions(+), 22 deletions(-)
Signature · 1 line
2.18.2