Skip to content

Support bootstrap running on old kernel(<5.8) #349

@linrl3

Description

@linrl3
# ./bootstrap
libbpf: map 'rb': failed to create: -EINVAL
libbpf: failed to load BPF skeleton 'bootstrap_bpf': -EINVAL
Failed to load and verify BPF skeleton

When I am trying to run bootstrap, I get this error. It's because kernel version lower than 5.8 doesn't support BPF ring buffer map. My kernel version is 5.4.

I wonder if I could create a PR to implement a legacy version of bootstrap(bootstrap-legacy) to let it run on low version kernels. The idea is to use BPF_MAP_TYPE_PERF_EVENT_ARRAY to send data.

Metadata

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