본문 바로가기

전체 글

(518)
WalkThruStackDump_QMC_32BitARM.cmm ;**************************************************************************** ;** WalkThruStackDump_QMC_32BitARM.cmm ;** This script is designed to restore a call stack per process in ARM32 QMC Platform. ;** ;** ;** ;** when who what, where, why ;** -------------- ------------ ------------------------------------------------------ ;** 01/30/2016 austin.kim First version: This script is based upo..
TraceStackDumpWithCallstack_64BitARM.cmm ;**************************************************************************** ;** TraceStackDumpWithCallstack_64BitARM.cmm ;** This script is designed to restore a call stack per process in ARM64 bit process. ;** ;** ;** ;** when who what, where, why ;** -------------- ------------ ------------------------------------------------------ ;** 01/30/2016 austin.kim First version ;** 11/26/2016 austi..
[Linux][Kernel] T32 - 구조체 확인 (v.type) T32로 디버깅을 하다보면 struct의 선언부를 확인하고 싶을 때가 있어요. 예를 들어서 struct tty_struct 구조체의 멤버를 갑자기 확인하고 싶은 경우, "do do_struct.cmm tty_struct" 요렇게 입력하면 상세 멤버 변수를 확인할 수 있어요. struct tty_struct struct tty_struct struct(620 bytes, [0] int magic (signed 32 bits), [4] struct kref kref struct(4 bytes, [0] atomic_t refcount struct(4 bytes, [0] int counter (signed 3 [8] struct device * dev (pointer to struct device, 32 bit..
[Kernel] memory leak - debug(CONFIG_DEBUG_KMEMLEAK) 가끔 가다가 커널 메모리 누수(memory leak) 이슈가 생길 때가 있어요. OOM Killer가 메모리가 부족하다고 커널이 메시지를 남기며 스스로 자살을 하거나, Low Memory Killer가 너무나도 자주 돌아서 락업 현상으로 검출되죠. 이런 이슈가 나왔을 때 어떻게 디버깅을 하면 좋을까요? 한번 정리 좀 해볼께요. 1. 디버그 정보: contig_page_data.node_zones[0--1].free_area 우선 중 High/Low 메모리 Zone 중 어떤 Zone에서 페이지가 부족한 지 점검할 필요가 있어요. 만약에 Low 메모리 존에서 메모리가 부족하면 커널 동작으로 포커스를 맞추어야 하구요, 아래 경우와 같이 High Memory Zone에 Order 별로 free 페이지가 거의 없..
[리눅스커널] 로그 레벨을 업데이트하는 커밋(라즈베리 파이3)! 아래 패치를 반영하면 로그 레벨을 5로 수정할 수 있습니다. diff --git a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts index d69d6a187e0c..27abf73922b2 100644 --- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts @@ -12,7 +12,7 @@ model = "Raspberry Pi 3 Model B"; chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_..
[라즈베리파이] 64비트 라즈비안 이미지 위치 '2021-05-28'에 릴리즈한 이미지 위치 downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/ 기존에 릴리즈한 라즈비안 이미지 위치 downloads.raspberrypi.org/raspios_arm64/images/
[라즈베리파이] 라즈비안 커널 빌드에 대한 유용한 정보 [라즈베리파이] 라즈비안 커널 빌드에 대한 유용한 정보 https://wiki.gentoo.org/wiki/Raspberry_Pi/Kernel_Compilation
[리눅스] 유틸리티: tar, tar.gz 분할 압축 하기/압축 풀기 출처: https://promobile.tistory.com/262 https://extrememanual.net/27180 tar -xvf vmlinux.tar.gz cat panic.tar.gza* | tar xvfz - (where) panic.tar.gzaa panic.tar.gzab panic.tar.gzac