리눅스 커널의 구조와 원리/3. 커널 디버깅과 코드 학습 (3) 썸네일형 리스트형 [Linux kernel] Enable CONFIG_DEBUG_INFO by reverting CONFIG_DEBUG_INFO_NONE The patchset to enable CONFIG_DEBUG_INFO_NONE is proposed to speed-up the compilation time. In real project, the CONFIG_DEBUG_INFO_NONE is not used because the build-server that we are using support powerful performance. When applying the following patch, you will see that CONFIG_DEBUG_INFO is included in the .config file.diff --git a/lib/Kconfig.debug b/lib/Kconfig.debugindex bf0995d328b3..a2f9.. [LinuxKernel] Crash-Utility: add new command "ps -e" Why I added new features to crash tool?Sometimes, some linux kernel in another platform are missing struct task_struct.sched_info.last_arrival element. For this matter, it is hard to know how the processes are executed at the time of order.The "ps -e" command allows for listing the process at the time of order based on execution launching time.crash> ps -eps: exec_start - task_struct.se.exec_sta.. [LinuxKernel] Trace32(T32) How to use offsetof/container_of macro? OverviewWhen debugging ramdump with stability issues, I have been spending most of time casting various data structure as belows.v.v %s (struct task_struct*)0xC1917FCCFor this matter, I made several macros to minimize the debugging time.The definition of the macro is below.sYmbol.NEW.MACRO offsetof(type,member) ((int)(&((type*)0)->member))sYmbol.NEW.MACRO container_of(ptr,type,member) ((type *)(.. 이전 1 다음