Whamcloud - gitweb
LU-17995 libcfs: implement libcfs_subsystem_debug 36/57336/3
authorTimothy Day <timday@amazon.com>
Sun, 8 Dec 2024 06:46:41 +0000 (01:46 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:42:47 +0000 (18:42 +0000)
commit627c4b2b93484818f13c3e7158593ae0c097bf6c
treecf28f0b1d7e7664731de5a59b67df33eb5187f97
parent59b78c38318091e75f58ecf937aa176ee16fd523
LU-17995 libcfs: implement libcfs_subsystem_debug

Allow printk to be enabled based on subsystem. This mirrors
the existing infrastructure for printing debug messages
to console.

Also, include file and function names in debug messages
printed to the console.

These changes remove the need for the custom debugging in
the in-memory OSD.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ifaca7f6d4f1b7b5fb42e7147b5a9dff0b34f643a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57336
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/debug.c
libcfs/libcfs/module.c
libcfs/libcfs/tracefile.c