From 5f962253c35c0aacc9f3a033ee86e09f261cce70 Mon Sep 17 00:00:00 2001 From: Abhishek Jha Date: Fri, 7 Feb 2025 16:49:19 +0100 Subject: [PATCH 1/2] doc-fix : clang and cmake skeleton generation doc update for ebpf Signed-off-by: Abhishek Jha --- pipeline/inputs/ebpf.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipeline/inputs/ebpf.md b/pipeline/inputs/ebpf.md index 767d032f1..28b4d955e 100644 --- a/pipeline/inputs/ebpf.md +++ b/pipeline/inputs/ebpf.md @@ -15,12 +15,13 @@ To enable `in_ebpf`, ensure the following dependencies are installed on your sys - **Required Packages**: - `bpftool`: Used to manage and debug eBPF programs. - `libbpf-dev`: Provides the `libbpf` library for loading and interacting with eBPF programs. + - `clang`: Clang compiler - **CMake** 3.13 or higher: Required for building the plugin. ### Installing Dependencies on Ubuntu ```bash sudo apt update -sudo apt install libbpf-dev linux-tools-common cmake +sudo apt install libbpf-dev linux-tools-common cmake clang ``` ## Building Fluent Bit with `in_ebpf` @@ -39,7 +40,7 @@ Create a build directory and run `cmake` with the `-DFLB_IN_EBPF=On` flag to ena ```bash mkdir build cd build -cmake .. -DFLB_IN_EBPF=On +cmake --DFLB_IN_EBPF=On --target=flb-ebpf-generate_skeletons .. ``` 3. **Compile the Source** From 3cf20e70560bc8ec19c8e902e2708a7926221bff Mon Sep 17 00:00:00 2001 From: Abhishek Jha Date: Wed, 12 Feb 2025 03:14:43 +0100 Subject: [PATCH 2/2] fix --- pipeline/inputs/ebpf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/inputs/ebpf.md b/pipeline/inputs/ebpf.md index 28b4d955e..798de0fda 100644 --- a/pipeline/inputs/ebpf.md +++ b/pipeline/inputs/ebpf.md @@ -40,7 +40,7 @@ Create a build directory and run `cmake` with the `-DFLB_IN_EBPF=On` flag to ena ```bash mkdir build cd build -cmake --DFLB_IN_EBPF=On --target=flb-ebpf-generate_skeletons .. +cmake .. -DFLB_IN_EBPF=On ``` 3. **Compile the Source**