Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions plugins/in_ebpf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ add_library(gadget INTERFACE)
target_include_directories(gadget INTERFACE ${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/includes/external/gadget)

set(LIBC_PATH "/lib64/libc.so.6")
set(LIBSSL_PATH "/lib64/libssl.so.3")

find_program(LSB_RELEASE_EXEC lsb_release)
if (LSB_RELEASE_EXEC)
Expand All @@ -42,10 +43,13 @@ if (LSB_RELEASE_EXEC)
# Just added for the future enhancement
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64|aarch64)")
set(LIBC_PATH "/usr/lib/aarch64-linux-gnu/libc.so.6")
set(LIBSSL_PATH "/usr/lib/aarch64-linux-gnu/libssl.so.3")
elseif (CMAKE_SIZEOF_VOID_P EQUAL 8)
set(LIBC_PATH "/usr/lib/x86_64-linux-gnu/libc.so.6")
set(LIBSSL_PATH "/usr/lib/x86_64-linux-gnu/libssl.so.3")
elseif (CMAKE_SIZEOF_VOID_P EQUAL 4)
set(LIBC_PATH "/usr/lib/i386-linux-gnu/libc.so.6")
set(LIBSSL_PATH "/usr/lib/i386-linux-gnu/libssl.so.3")
endif()
endif()
endif()
Expand All @@ -56,6 +60,11 @@ configure_file(
"${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/malloc/bpf.c"
)

configure_file(
"${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/openssl/bpf.c.in"
"${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/openssl/bpf.c"
)

# Find all bpf.c files in the traces directory
file(GLOB_RECURSE TRACE_C_FILES ${CMAKE_SOURCE_DIR}/plugins/in_ebpf/traces/*/bpf.c)

Expand Down
2 changes: 1 addition & 1 deletion plugins/in_ebpf/in_ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static struct flb_config_map config_map[] = {
{
FLB_CONFIG_MAP_STR, "Trace", NULL,
FLB_CONFIG_MAP_MULT, FLB_FALSE, 0,
"Set the eBPF trace to enable (for example, bind, exec, malloc, signal, vfs, tcp). Can be set multiple times"
"Set the eBPF trace to enable (for example, bind, dns, exec, malloc, signal, vfs, tcp). Can be set multiple times"
},
/* EOF */
{0}
Expand Down
Loading
Loading