Skip to content

cosmetic fixes to module pr_debugs

Jim Cromie linux-modules lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4module: in layout_sections, move_module: add the modnamekernel/module/main.c+3 -30 replies
2/4module: add symbol-name to pr_debug Absolute symbolkernel/module/main.c+2 -20 replies
3/4module: add section-size to move_module pr_debugkernel/module/main.c+2 -20 replies
4/4module: already_uses() - reduce pr_debug output volumekernel/module/main.c+1 -30 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] cosmetic fixes to module pr_debugs

Hi Luis,

These 4 patches alter pr_debug() messages for more info, and less log-spam.

* add "for $modname:" to banners
helpful for finding one of many

[   40.885922] main:layout_sections: Core section allocation order for test_dynamic_debug:
    	       ~20 lines of output
[   40.885967] main:move_module: Final section addresses for test_dynamic_debug:
    	       ~2 lines - .init.text/data

* add symbol name to "Absolute symbol: <value>"
val ~== 0 - less interesting than name

[   40.886006] main:simplify_symbols: Absolute symbol: 0x00000000 test_dynamic_debug.c
[   40.886008] main:simplify_symbols: Absolute symbol: 0x00000000 test_dynamic_debug.mod.c

* add size to section report. gives more info.

[   40.885968] main:move_module: 	0xffffffffc0249000 0x0000035d .text
[   40.885971] main:move_module: 	0xffffffffc0252000 0x0000003c .init.text

* drop already_uses: pr_debug("$ uses $b!") messages

echo module main +pmf >/proc/dynamic_debug/control modprobe i915

before:
dmesg | grep already_uses | cut -c15- | wc

    673    2722   28641
  dmesg | grep already_uses | cut -c15- | sort -u | wc
     26     134    1237

after:
dmesg | grep already_uses | cut -c15- | wc

     15      90     756
  dmesg | grep already_uses | cut -c15- | sort -u | wc
     15      90     756

Jim Cromie (4):
module: in layout_sections, move_module: add the modname
module: add symbol-name to pr_debug Absolute symbol
module: add section-size to move_module pr_debug
module: already_uses() - reduce pr_debug output volume

 kernel/module/main.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
Signature · 1 line
2.39.2