Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
e3c57cef
Commit
e3c57cef
authored
Nov 08, 2015
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bpf() syscall feature check and readme update
Fixes: #283 Signed-off-by:
Brenden Blanco
<
bblanco@plumgrid.com
>
parent
795c4e77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
INSTALL.md
INSTALL.md
+15
-0
src/cc/export/helpers.h
src/cc/export/helpers.h
+4
-0
No files found.
INSTALL.md
View file @
e3c57cef
# Kernel requirements
## Requirements
In general, to use these features, a Linux kernel version 4.1 or newer is
required. In addition, the following flags should be set:
-
`CONFIG_BPF=y`
-
`CONFIG_BPF_SYSCALL=y`
-
`CONFIG_NET_CLS_BPF=m`
[optional, for tc filters]
-
`CONFIG_NET_ACT_BPF=m`
[optional, for tc actions]
-
`CONFIG_BPF_JIT=y`
-
`CONFIG_HAVE_BPF_JIT=y`
-
`CONFIG_BPF_EVENTS=y`
[optional, for kprobes]
# Ubuntu - Binary
Install a 4.3+ kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline,
...
...
src/cc/export/helpers.h
View file @
e3c57cef
...
...
@@ -20,6 +20,10 @@
#include <uapi/linux/if_packet.h>
#include <linux/version.h>
#ifndef CONFIG_BPF_SYSCALL
#error "CONFIG_BPF_SYSCALL is undefined, please check your .config or ask your Linux distro to enable this feature"
#endif
/* helper macro to place programs, maps, license in
* different sections in elf_bpf file. Section names
* are interpreted by elf_bpf loader
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment