3
0
Fork 0
forked from mirrors/nixpkgs

linux: kernel config for extended BPF support

- Enable BPF_SYSCALL and BPF_EVENTS
- Build modules for NET_CLS_BPF and NET_ACT_BPF

With these config options we can leverage the full potential of BPF for
tracing and instrumenting Linux systems, for example using
libraries/tools like those provided by the bcc project.
This commit is contained in:
Ragnar Dahlén 2016-04-06 14:25:14 +01:00
parent 32b7b0009f
commit 961d1e847c

View file

@ -118,6 +118,10 @@ with stdenv.lib;
${optionalString (stdenv.system == "x86_64-linux") ''
BPF_JIT y
''}
${optionalString (versionAtLeast version "4.4") ''
NET_CLS_BPF m
NET_ACT_BPF m
''}
# Wireless networking.
CFG80211_WEXT? y # Without it, ipw2200 drivers don't build
@ -398,6 +402,10 @@ with stdenv.lib;
${optionalString (versionAtLeast version "3.10") ''
UPROBE_EVENT y
''}
${optionalString (versionAtLeast version "4.4") ''
BPF_SYSCALL y
BPF_EVENTS y
''}
FUNCTION_PROFILER y
RING_BUFFER_BENCHMARK n