All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCHv5 1/5] package/llvm: add BPF backend
@ 2020-12-06 17:35 Romain Naour
  2020-12-06 17:35 ` [Buildroot] [PATCHv5 2/5] package/bcc: new package Romain Naour
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Romain Naour @ 2020-12-06 17:35 UTC (permalink / raw)
  To: buildroot

From: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>

bcc is a front-end tool for eBPF :
https://github.com/iovisor/bcc/blob/master/README.md.
eBPF is the most powerful Linux tracer, and bcc
allows to write eBPF scripts in C and PYTHON3.

BCC requires enabling LLVM backend BPF support.

Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Qais Yousef <qais.yousef@arm.com>
---
 package/llvm/Config.in | 6 ++++++
 package/llvm/llvm.mk   | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/package/llvm/Config.in b/package/llvm/Config.in
index 1d21d879da..6ec2ffcfe6 100644
--- a/package/llvm/Config.in
+++ b/package/llvm/Config.in
@@ -47,6 +47,12 @@ config BR2_PACKAGE_LLVM_RTTI
 
 	  https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html
 
+config BR2_PACKAGE_LLVM_BPF
+	bool "BPF backend"
+	help
+	  Build BPF target. Select this option if you are going
+	  to install bcc on the target.
+
 endif
 
 comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, dynamic library"
diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk
index 24d033d124..48a298191c 100644
--- a/package/llvm/llvm.mk
+++ b/package/llvm/llvm.mk
@@ -61,6 +61,11 @@ ifeq ($(BR2_PACKAGE_LLVM_AMDGPU),y)
 LLVM_TARGETS_TO_BUILD += AMDGPU
 endif
 
+# Build BPF backend
+ifeq ($(BR2_PACKAGE_LLVM_BPF),y)
+LLVM_TARGETS_TO_BUILD += BPF
+endif
+
 # Use native llvm-tblgen from host-llvm (needed for cross-compilation)
 LLVM_CONF_OPTS += -DLLVM_TABLEGEN=$(HOST_DIR)/bin/llvm-tblgen
 
-- 
2.25.4

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-12-21 11:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 17:35 [Buildroot] [PATCHv5 1/5] package/llvm: add BPF backend Romain Naour
2020-12-06 17:35 ` [Buildroot] [PATCHv5 2/5] package/bcc: new package Romain Naour
2020-12-20  1:44   ` Qais Yousef
2020-12-20  9:17     ` Romain Naour
2020-12-06 17:35 ` [Buildroot] [PATCHv5 3/5] package/libbpf: " Romain Naour
2020-12-20  2:07   ` Qais Yousef
2020-12-06 17:35 ` [Buildroot] [PATCHv5 4/5] package/bpftrace: " Romain Naour
2020-12-20  1:47   ` Qais Yousef
2020-12-20 10:01     ` Romain Naour
2020-12-20 15:22       ` Romain Naour
2020-12-21 11:44       ` Qais Yousef
2020-12-06 17:35 ` [Buildroot] [PATCHv5 5/5] package/bcc: add optional luajit dependency Romain Naour
2020-12-20  1:47   ` Qais Yousef
2020-12-20 10:11     ` Romain Naour
2020-12-20  1:43 ` [Buildroot] [PATCHv5 1/5] package/llvm: add BPF backend Qais Yousef

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.