Skip to content

Commit ae310fe

Browse files
xttjsnfacebook-github-bot
authored andcommitted
Use a beta version of libbpf to unblock perf_buffer__buffer API
Summary: It turns out that perf_buffer API is only available in libbpf 0.2.0, which hasn't been released yet. To unblock katran, I grabbed the latest libbpf revision and created a temporary manifest. To avoid relying on this "beta" version libbpf on other projects only katran uses it. I'll make sure to remove it in favor of the official libbpf 0.2.0 once it's released. Reviewed By: anakryiko Differential Revision: D24156655 fbshipit-source-id: 32f6e04079a862fbfe96fd5475678cfa4ae1b3db
1 parent 75edb39 commit ae310fe

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

build/fbcode_builder/manifests/katran

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BUILD_TESTS=OFF
2424
[dependencies]
2525
folly
2626
fizz
27-
libbpf
27+
libbpf_0_2_0_beta
2828
libmnl
2929
zlib
3030
googletest
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[manifest]
2+
name = libbpf_0_2_0_beta
3+
4+
[download]
5+
url = https://github.com/libbpf/libbpf/archive/b6dd2f2.tar.gz
6+
sha256 = 8db9dca90f5c445ef2362e3c6a00f3d6c4bf36e8782f8e27704109c78e541497
7+
8+
# BPF only builds on linux, so make it a NOP on other platforms
9+
[build.not(os=linux)]
10+
builder = nop
11+
12+
[build.os=linux]
13+
builder = make
14+
subdir = libbpf-b6dd2f2b7df4d3bd35d64aaf521d9ad18d766f53/src
15+
16+
[make.build_args]
17+
BUILD_STATIC_ONLY=y
18+
19+
# libbpf now requires uapi headers >= 5.8
20+
[make.install_args]
21+
install
22+
install_uapi_headers
23+
BUILD_STATIC_ONLY=y
24+
25+
[dependencies]
26+
libelf

0 commit comments

Comments
 (0)