Skip to content

How to enable BPF-related kernel features #146

Closed
@wqld

Description

M1 Mac Mini

$ uname -a
Linux wq-asahi 6.1.0-rc6-asahi-4-1-ARCH #1 SMP PREEMPT_DYNAMIC Tue, 22 Nov 2022 06:06:17 +0000 aarch64 GNU/Linux

Description

I tried to run the script /bpftrace/scripts/check_kernel_features.sh to use the bpftrace tool, and I get the following message.

$ ./Workspace/bpftrace/scripts/check_kernel_features.sh 
Required option CONFIG_BPF_EVENTS not set
Required option CONFIG_FTRACE_SYSCALLS not set
Required option CONFIG_FUNCTION_TRACER not set
Required option CONFIG_DYNAMIC_FTRACE not set
Required option CONFIG_KPROBE_EVENTS not set
Required option CONFIG_UPROBES not set
Required option CONFIG_UPROBE_EVENTS not set
Missing required features

I tried to build the source code and install it, but it didn't work, maybe I'm just inexperienced...
Is there an easy way to set this up during the Asahi Linux installation process, or how do I enable this feature?
Can I use bpftrace on asahi linux..?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions