Page MenuHomePhabricator

build: improve detection of eBPF support
ClosedPublic

Authored by Fabien on Nov 25 2022, 15:15.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCd770725da8c0: build: improve detection of eBPF support
Summary
Just checking for the `sys/sdt.h` header isn't enough, as systems like
macOS have the header, but it doesn't actually have the dtrace probes,
which leads to compile failures.

Backport of core#22238.

Test Plan
cmake -GNinja .. -DENABLE_TRACING=ON
ninja