I'm on Ubuntu 5.15.0-100-generic built using the instructions for Ubuntu I run: /sbin/offcputime-bpfcc 3 warnings generated. cannot attach kprobe, probe entry may not exist Traceback (most recent call last): File "/sbin/offcputime-bpfcc"...
root@localhost:/bpfonandroid# zcat /proc/config.gz | grep -E "CONFIG_FUNCTION_ERROR_INJECTION|KPROBE_OVERRIDE" CONFIG_BPF_KPROBE_OVERRIDE=y CONFIG_FUNCTION_ERROR_INJECTION=y And I checked if openat hasALLOW_ERROR_INJECTION root@localhost:/bpfonandroid# cat /proc/kallsyms | grep _eil_addr |...
(event="blk_account_io_done", fn_name="trace_req_done") File "/usr/lib/python3/dist-packages/bcc-0.31.0+0d5dcf40-py3.10.egg/bcc/__init__.py", line 881, in attach_kprobe Exception: Failed to attach BPF program b'trace_req_done' to kprobe b'blk_account_io_done', it's not...
Wire through bpf_cookie for all attach APIs that use perf_event_open under the hood: - for kprobes, extend existing bpf_kprobe_opts with bpf_cookie field; - for perf_event, uprobe, and tracepoint APIs, add their _opts variants and pass bpf_cookie through opts. For kernel that don't ...