Skip to content

Fixes and enhancements for memory debugging

Glenn Washburn grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3configure: Properly handle MM_DEBUGconfig.h.in configure.ac+8 -21 reply
2/3mm: Export grub_mm_dump and grub_mm_dump_freeinclude/grub/mm.h+2 -23 replies
3/3mm: Temporarily disable grub_mm_debug while calling grub_vprintf in grub_printfgrub-core/kern/misc.c+19 -01 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDaniel Kiper
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Fixes and enhancements for memory debugging

The first patch supercedes a patch sent earlier of the same subject. I've removed the #undef if --mm-debug is not passwed to configure. The idea is that even if --mm-debug is not passed to configure, the user should still be able to enable memory debugging by passing -DMM_DEBUG in CFLAGS.

The second patch I found useful in dumping the memory allocation state from a module.

And the third patch is a bug fix, without which enabling memory debugging leads to a certain infinite recursion crash (when also enabling grub_mm_debug). As an aside, this leads me to believe that no one has used this feature in a very long time (and is not currently using it).

Glenn

Glenn Washburn (3):
configure: Properly handle MM_DEBUG
mm: Export grub_mm_dump and grub_mm_dump_free
mm: Temporarily disable grub_mm_debug while calling grub_vprintf in
grub_printf

 config.h.in           |  4 ++++
 configure.ac          |  6 ++++--
 grub-core/kern/misc.c | 19 +++++++++++++++++++
 include/grub/mm.h     |  4 ++--
 4 files changed, 29 insertions(+), 4 deletions(-)
Signature · 1 line
2.27.0