FS#47008 - [linux] Enables CONFIG_BPF_SYSCALL to allow external BPF callers

Attached to Project: Arch Linux
Opened by Troy Engel (TE) - Monday, 09 November 2015, 01:53 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 10 December 2015, 07:13 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The CONFIG_BPF_SYSCALL needs to be enabled so that external callers can load BPF modules, such as the BCC project (provides libbcc.so, allowing Python to interface with BPF). https://github.com/iovisor/bcc

Specifically, while trying to make a good AUR project I found all samples failing (100%), it all leads back to being able to call this SYSCALL "bpf_prog_load()": http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/bpf/syscall.c#n590

This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 10 December 2015, 07:13 GMT
Reason for closing:  Implemented
Additional comments about closing:  4.3.1-1
Comment by Troy Engel (TE) - Tuesday, 10 November 2015, 02:15 GMT
Quick update: upstream accepted my request to document CONFIG_BPF_SYSCALL and a code check was added to complement it:

https://github.com/iovisor/bcc/commit/e3c57cefd08eb794f498ec07c2faa002dd41abad

Loading...