facebookexperimental / ExtendedAndroidTools

Extended Android Tools is a place to host and maintain a build environment and makefiles cross compiling Linux tools we all love for Android.
Apache License 2.0
189 stars 63 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/debug/kprobes/blacklist' #43

Closed EricHChz closed 1 year ago

EricHChz commented 1 year ago

When I use bcc tools, such as cachestat, python3 cachestat -T

this error: Traceback (most recent call last): File "/data/local/tmp/bpftools/share/bcc/tools/cachestat", line 104, in if BPF.get_kprobe_functions(b'folio_account_dirtied'): File "/data/local/tmp/bpftools/lib/python3.10/site-packages/bcc/init.py", line 698, in get_kprobe_functions raise e File "/data/local/tmp/bpftools/lib/python3.10/site-packages/bcc/init.py", line 694, in get_kprobe_functions with open(blacklist_file, "rb") as blacklist_f: FileNotFoundError: [Errno 2] No such file or directory: '/sys/kernel/debug/kprobes/blacklist'

EricHChz commented 1 year ago

1、CONFIG_DEBUG_FS=y find this config 2、mount -t debugfs none /sys/kernel/debug/