cloudflare / cloudflare/cbpfc

clang: Expose `-mcpu` flag

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
216
Forks
31
Avg merge
1d 3h
Merged PRs (30d)
5

Description

By default `clang` uses `-mcpu=probe`, which attempts to probe the current kernel to detect what eBPF features it can use / will be accepted by the kernel verifier.

It can also explicitly be set to `v1`, `v2` or `v3`. Expose this (or maybe a generic means of passing flags to clang) to allow users to set this. It's useful for those that compile eBPF on one machine, and run it on another.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.