is_debugfs_mounted();
Checks whether debugfs is mounted at /sys/kernel/debug, same check as blktests' _have_debugfs(). Returns true/false.
enable_debugfs();
Mounts debugfs at /sys/kernel/debug (e.g. on SLE 16.1+, where it is disabled by default per PED-8812).
get_kernel_config();
Locates the running kernel's config file (/boot/config-$(uname -r), falling back to /usr/lib/modules/$(uname -r)/config and then /proc/config.gz) and records its full contents via record_info(), prefixed with a comment naming the source file (as done in LTP::utils::log_versions).