Guillermo Austin Kim
Posts
998 posts[Linux-Kernel][Debug]kernel panic@mmc_wait_data_done
Debugging"ndroid.systemui" 프로세스가 raw_spin_lock_irqsave() API 동작 중에 watchdog reset이 되었다.-000|aee_wdt_atf_entry()-001|prefetchw(inline)-001|arch_spin_lock(inline)-001|do_raw_spin_lock_flags(inline)-001|__raw_spin_lock_irqsave(inline)-001|raw_spin_lock_irqsave(lock = 0xDD82725C)-002|__wake_up(q = 0xDD82725C, mode = 1, nr_exclusive = 1, key = 0x0)-003|mmc_wait_data_done-004|msdc_irq_data_complete(host
[Linux][ftrace]function/function_graph tracer
config 설정아래와 같이 CONFIG를 설정하면 function/functin_graph Trace가 enable됩니다.diff --git a/arch/arm/configs/pompeii_com_defconfig b/arch/arm/configs/pompeii_com_defconfigindex cb0ff09..e76a947 100644--- a/arch/arm/configs/pompeii_com_defconfig+++ b/arch/arm/configs/pompeii_com_defconfig@@ -772,6 +770,9 @@ CONFIG_FREE_PAGES_RDONLY=y CONFIG_DEBUG_SET_MODULE_RONX=y CONFIG_SECURITY=y CONFIG_SECURITY_NETWORK=y+
[Linux][Debug][T32] macro offsetof/container_of
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) ((typ
[Linux][Debug][CrashTools] 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_
[Linux][ARM] char buf[32]; vs char buf[32]={0};
Quite interesting patch was released under the following url.https://source.codeaurora.org/quic/la/kernel/msm-3.18/commit/?h=rel/msm-3.18&id=a0039b1e721b7b3ee1cbe7f7f9d44d451ac74543 The detailed patch is to initialize the stack array with a different way as below.usb : dwc3: Initialize kernel stack variables properlyIf kernel stack variables are not initialized properly,there is a chance of


