Skip to content

dyndbg: WIP diet plan

Jim Cromie dri-devel linux-arch linux-media lkml oe-kbuild-all oe-lkp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dyndbg: give %3u width in pr-format, cosmetic onlylib/dynamic_debug.c+1 -10 replies
2/7dyndbg: motivate a diet planlib/dynamic_debug.c+15 -20 replies
3/7dyndbg: select ZPOOL in Kconfig.debuglib/Kconfig.debug+1 -02 replies
4/7dyndbg: split struct _ddebug in 2, creating _ddebug_callsiteinclude/asm-generic/vmlinux.lds.h include/linux/dynamic_debug.h lib/dynamic_debug.c+58 -330 replies
5/7dyndbg: WIP replace __dyndbg_callsite section with a zs-pool copy.include/linux/dynamic_debug.h lib/dynamic_debug.c+145 -120 replies
6/7dyndbg: add locking around zpool-add loop in zpool-initlib/dynamic_debug.c+2 -10 replies
7/7dyndbg: enable 'cache' of active pr_debug callsiteslib/dynamic_debug.c+3 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] dyndbg: WIP diet plan

dynamic-debug metadata is bloated; the __dyndbg linker section is effectively an array of struct _ddebugs, and its 1st 3 members are highly repetetive, with 90%, 84%, 45% repeats. Total reported usage ~150kb for ~2600 callsites on my laptop config.

This patchset is one diet plan. it all holds together nicely until the "cache" commit, when it blows up starting init (or right after freeing unused kernel image, which Im hoping to do...).

last commit log has the BUG trace from a LOCKDEP build, which reports stuff I dont quite undertand, except that it looks bad.

Jim Cromie (7):
dyndbg: give %3u width in pr-format, cosmetic only
dyndbg: motivate a diet plan
dyndbg: select ZPOOL in Kconfig.debug
dyndbg: split struct _ddebug in 2, creating _ddebug_callsite
dyndbg: WIP replace __dyndbg_callsite section with a zs-pool copy.
dyndbg: add locking around zpool-add loop in zpool-init
dyndbg: enable 'cache' of active pr_debug callsites

 include/asm-generic/vmlinux.lds.h |   4 +
 include/linux/dynamic_debug.h     |  36 +++--
 lib/Kconfig.debug                 |   1 +
 lib/dynamic_debug.c               | 220 +++++++++++++++++++++++++-----
 4 files changed, 218 insertions(+), 43 deletions(-)
Signature · 1 line
2.26.2