<v5.4>
By default kernel is configured with CONFIG_SCHED_INFO=y.
Looking into .config we can notice the followings;
# Scheduler Debugging
#
# CONFIG_SCHED_DEBUG is not set
CONFIG_SCHED_INFO=y
# CONFIG_SCHEDSTATS is not set
# end of Scheduler Debugging
With below patch, CONFIG_SCHED_INFO can be disabled
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ee00c6c..dd70401 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1007,7 +1007,6 @@ config SCHED_INFO
config SCHEDSTATS
bool "Collect scheduler statistics"
depends on DEBUG_KERNEL && PROC_FS
- select SCHED_INFO
help
If you say Y here, additional code will be inserted into the
scheduler and related routines to collect statistics about
diff --git a/init/Kconfig b/init/Kconfig
index fc4c9f4..4f4fe52 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -569,7 +569,6 @@ config TASKSTATS
config TASK_DELAY_ACCT
bool "Enable per-task delay accounting"
depends on TASKSTATS
- select SCHED_INFO
help
Collect information on time spent by a task waiting for system
resources like cpu, synchronous block I/O completion and swapping
As above patch indicates, CONFIG_SCHED_DEBUG depends on CONGIF_SCHEDSTATS.
'Core BSP 분석 > 리눅스 커널 핵심 분석' 카테고리의 다른 글
[리눅스커널] IPI Call 요청: SGI(Software Generated Interrupt) 요청 (로우 레벨 뷰) (0) | 2023.05.07 |
---|---|
[리눅스커널] IPI(Inter Processor Interrupt) Call 요청 루틴(하이 레벨 뷰) (0) | 2023.05.07 |
[리눅스커널] kimage_voffset를 T32으로 디버깅하기 (0) | 2023.05.07 |
[리눅스커널] tracing: 파일 오픈 내역 확인하기 (0) | 2023.05.07 |
[리눅스커널] tracing: 부팅 과정에서 ftrace ring-buffer 늘리기 (0) | 2023.05.07 |