From c219f4267c8717f7ce1500120852712f4326230e Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Tue, 27 Aug 2024 16:04:39 +0000 Subject: [PATCH] Reduce iovec bpf loop limit from 42 to 41 to fix BPF instruction count for 4.14 kernels Signed-off-by: Dom Del Nano --- .../source_connectors/socket_tracer/socket_trace_connector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc b/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc index 6011d133e0b..c4c273b96ba 100644 --- a/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc +++ b/src/stirling/source_connectors/socket_tracer/socket_trace_connector.cc @@ -176,7 +176,7 @@ DEFINE_bool( stirling_debug_tls_sources, gflags::BoolFromEnv("PX_DEBUG_TLS_SOURCES", false), "If true, stirling will add additional prometheus metrics regarding the traced tls sources"); -DEFINE_uint32(stirling_bpf_loop_limit, 42, +DEFINE_uint32(stirling_bpf_loop_limit, 41, "The maximum number of iovecs to capture for syscalls. " "Set conservatively for older kernels by default to keep the instruction count below " "BPF's limit for version 4 kernels (4096 per probe).");