HomePhabricator

build: improve detection of eBPF support

Description

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D12636

Details

Provenance
fanquake <fanquake@gmail.com>Authored on Jun 14 2021, 05:35
FabienCommitted on Nov 26 2022, 09:58
FabienPushed on Nov 26 2022, 09:58
Reviewer
Restricted Project
Differential Revision
D12636: build: improve detection of eBPF support
Parents
rABC42362d5c2a2b: [Cashtab] [local opreturn encode p2/2] Simplify function
Branches
Unknown
Tags
Unknown