Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tcp_stats] Use kfuncs to probe the tcp_sendmsg function #2072

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Log when kfunc fails to attach on an older kernel

8d77b86
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

[tcp_stats] Use kfuncs to probe the tcp_sendmsg function #2072

Log when kfunc fails to attach on an older kernel
8d77b86
Select commit
Loading
Failed to load commit list.
GitHub Actions / testlogs-Clang opt + UI tests succeeded Jan 7, 2025 in 0s

testlogs-Clang opt + UI tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
bazel-testlogs/src/stirling/bpf_tools/macros_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/core/connector_context_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/core/data_table_test/test.xml 6✅ 47ms
bazel-testlogs/src/stirling/core/frequency_manager_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/core/info_class_manager_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/core/output_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/core/pub_sub_manager_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/core/record_builder_test/test.xml 7✅ 0ms
bazel-testlogs/src/stirling/core/source_registry_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/core/stirling_component_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/core/stirling_test/test.xml 3✅ 32s
bazel-testlogs/src/stirling/core/types_test/test.xml 3✅ 0ms
bazel-testlogs/src/stirling/e2e_tests/stirling_signal_test/test.xml 1✅ NaNms
bazel-testlogs/src/stirling/e2e_tests/stirling_wrapper_size_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_trace_connector_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/autogen_test/test.xml 5✅ 57ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/code_gen_test/test.xml 7✅ 0ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/dwarvifier_test/test.xml 8✅ 92ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/dynamic_tracer_test/test.xml 7✅ 25s
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/goid_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/probe_transformer_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/source_connectors/jvm_stats/jvm_stats_connector_test/test.xml 1✅ 4s
bazel-testlogs/src/stirling/source_connectors/perf_profiler/java/agent/agent_test/test.xml 1✅ 5s
bazel-testlogs/src/stirling/source_connectors/perf_profiler/java/demangle_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/source_connectors/perf_profiler/stack_trace_id_cache_test/test.xml 1✅ 0ms
bazel-testlogs/src/stirling/source_connectors/perf_profiler/symbol_cache/symbol_cache_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_stats_test/test.xml 6✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_tracker_http2_test/test.xml 9✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_tracker_test/test.xml 44✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_trackers_manager_test/test.xml 3✅ 97ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/data_stream_test/test.xml 12✅ 106ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/fd_resolver_test/test.xml 5✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/protocols/dns/stitcher_test/test.xml 2✅ 0ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/socket_trace_connector_test/test.xml 20✅ 1ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/socket_trace_protocols_test/test.xml 15✅ 98ms
bazel-testlogs/src/stirling/source_connectors/socket_tracer/uprobe_symaddrs_test/test.xml 4✅ 206ms
bazel-testlogs/src/stirling/utils/monitor_test/test.xml 3✅ 5s
bazel-testlogs/src/stirling/utils/run_core_stats_test/test.xml 1✅ 0ms
bazel-testlogs/src/vizier/services/agent/pem/tracepoint_manager_test/test.xml 4✅ 0ms

✅ bazel-testlogs/src/stirling/bpf_tools/macros_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
CCResourceTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/core/connector_context_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SystemWideStandaloneContextTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/core/data_table_test/test.xml

6 tests were completed in 47ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DataTableStressTest 1✅ 47ms
DataTableTest 5✅ 0ms

✅ bazel-testlogs/src/stirling/core/frequency_manager_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
FrequencyManagerTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/core/info_class_manager_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
InfoClassInfoSchemaTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/core/output_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
PrintRecordBatchTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/core/pub_sub_manager_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
PubSubManagerTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/core/record_builder_test/test.xml

7 tests were completed in 0ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DynamicRecordBuilder 3✅ 0ms
RecordBuilder 4✅ 0ms

✅ bazel-testlogs/src/stirling/core/source_registry_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SourceRegistryTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/core/stirling_component_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SourceToTableTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/core/stirling_test/test.xml

3 tests were completed in 32s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
StirlingTest 3✅ 32s

✅ bazel-testlogs/src/stirling/core/types_test/test.xml

3 tests were completed in 0ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DataElementTest 1✅ 0ms
DataTableSchemaTest 1✅ 0ms
DynamicDataTableSchemaTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/e2e_tests/stirling_signal_test/test.xml

1 tests were completed in NaNms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/stirling/e2e_tests/stirling_signal_test 1✅ NaNms

✅ bazel-testlogs/src/stirling/e2e_tests/stirling_wrapper_size_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
StirlingWrapperSizeTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_trace_connector_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DynamicTraceConnectorTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/autogen_test/test.xml

5 tests were completed in 57ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AutoTraceExpansionTestSuite/AutoTraceExpansionTest 1✅ 10ms
DetectSourceLanguageTestSuite/DetectSourceLanguageTest 1✅ 11ms
ResolveProbeSymbolTest 2✅ 24ms
ResolveProbeSymbolTestSuite/ResolveProbeSymbolTest 1✅ 11ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/code_gen_test/test.xml

7 tests were completed in 0ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
GenMapStashActionTest 1✅ 0ms
GenProgramTest 1✅ 0ms
GenStructTest 1✅ 0ms
GenStructVariableTest 1✅ 0ms
GenVariableTest 3✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/dwarvifier_test/test.xml

8 tests were completed in 92ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DwarfInfoTestSuite/DwarfInfoTest 8✅ 92ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/dynamic_tracer_test/test.xml

7 tests were completed in 25s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DynamicTracerTest 1✅ 12ms
ResolveTargetObjPathTest 6✅ 25s

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/goid_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
GOIDTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/dynamic_tracer/dynamic_tracing/probe_transformer_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ProbeGenTest 1✅ 0ms
ProbeGenTestSuite/ProbeGenTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/jvm_stats/jvm_stats_connector_test/test.xml

1 tests were completed in 4s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
JVMStatsConnectorTest 1✅ 4s

✅ bazel-testlogs/src/stirling/source_connectors/perf_profiler/java/agent/agent_test/test.xml

1 tests were completed in 5s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
JavaAgentTest 1✅ 5s

✅ bazel-testlogs/src/stirling/source_connectors/perf_profiler/java/demangle_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
JavaDemangleTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/perf_profiler/stack_trace_id_cache_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
StackTraceIDCache 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/perf_profiler/symbol_cache/symbol_cache_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SymbolCacheTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_stats_test/test.xml

6 tests were completed in 0ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ConnStatsTest 5✅ 0ms
HashTest 1✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_tracker_http2_test/test.xml

9 tests were completed in 0ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ConnTrackerHTTP2Test 9✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_tracker_test/test.xml

44 tests were completed in 0ms with 44 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AllProtocols/ConnTrackerUpdateStateTest 22✅ 0ms
ConnTrackerTest 22✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/conn_trackers_manager_test/test.xml

3 tests were completed in 97ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ConnTrackerGenerationsTest 1✅ 0ms
ConnTrackersManagerTest 2✅ 97ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/data_stream_test/test.xml

12 tests were completed in 106ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DataStreamTest 12✅ 106ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/fd_resolver_test/test.xml

5 tests were completed in 0ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
FDResolverTest 5✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/protocols/dns/stitcher_test/test.xml

2 tests were completed in 0ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
DnsStitcherTest 2✅ 0ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/socket_trace_connector_test/test.xml

20 tests were completed in 1ms with 20 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SocketTraceConnectorTest 20✅ 1ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/socket_trace_protocols_test/test.xml

15 tests were completed in 98ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
SocketTraceConnectorTest 15✅ 98ms

✅ bazel-testlogs/src/stirling/source_connectors/socket_tracer/uprobe_symaddrs_test/test.xml

4 tests were completed in 206ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
UprobeSymaddrsNodeTest 1✅ 0ms
UprobeSymaddrsTest 3✅ 206ms

✅ bazel-testlogs/src/stirling/utils/monitor_test/test.xml

3 tests were completed in 5s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
MonitorTest 3✅ 5s

✅ bazel-testlogs/src/stirling/utils/run_core_stats_test/test.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
RunCoreStatsTest 1✅ 0ms

✅ bazel-testlogs/src/vizier/services/agent/pem/tracepoint_manager_test/test.xml

4 tests were completed in 0ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
TracepointManagerTest 4✅ 0ms