SeeFlowerX / stackplz

基于eBPF的堆栈追踪工具
Apache License 2.0
925 stars 179 forks source link

redroid13找不到/proc/config.gz #40

Closed chouex closed 10 months ago

chouex commented 10 months ago

stackplz是不是對host os也有要求?

android: (docker run -itd --rm --privileged -v ~/data:/data -p 5555:5555 redroid/redroid:13.0.0-latest)

130|redroid_arm64:/data # ./stackplz                                                                                
CheckKernelConfig failed, error:Kernel config read failed, error:open /proc/config.gz: no such file or directory
130|redroid_arm64:/data # uname -r
5.15.0-76-generic
redroid_arm64:/ $ zcat /proc/config.gz                                                                              
zcat: /proc/config.gz: No such file or directory

host: 阿里云 ECS Ubuntu 22.04 64位 ARM版

root@xxxxxxxxxxxxx:~# uname -a
Linux xxxxxxxxxxxxx 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:21:56 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

stackplz v2.1.4

SeeFlowerX commented 10 months ago

可以用--nocheck跳过检查

chouex commented 10 months ago

可以了謝謝

補充一下如果內核支持CONFIG_DEBUG_INFO_BTF也要加--btf否則會影響--getoff

在android或其host OS 檢查CONFIG_DEBUG_INFO_BTF:

# cat /boot/config-* | grep CONFIG_DEBUG_INFO_BTF
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y