Skip to content

Conversation

@etep
Copy link

@etep etep commented Aug 29, 2023

Summary: To prevent older kernels from complaining about eBPF instruction count, mux protocol tracing is only enabled for "newer" kernels. In our test case, we want to enable mux tracing. We fix test netty_tls_trace_bpf_test.cc by enabling mux protocol tracing using the test SetUp method (and we simultaneously disable a few other protocols to save on eBPF instruction count). Previously, we used an init function, but that was rendered ineffective after we switched our flags from command line args. to env. args.

Type of change: /kind bug fix

Test Plan: Existing tests.

Signed-off-by: Pete Stevenson <jps@pixielabs.ai>
@etep etep marked this pull request as draft August 29, 2023 00:06
Signed-off-by: Pete Stevenson <jps@pixielabs.ai>
@etep etep changed the title [stirling] Fix netty TLS trace BPF test. [stirling] Fix netty_tls_trace_bpf_test.cc mux protocol tracing option. Aug 29, 2023
@etep etep marked this pull request as ready for review August 29, 2023 00:15
@etep etep requested review from a team, benkilimnik and ddelnano August 29, 2023 00:15
Signed-off-by: Pete Stevenson <jps@pixielabs.ai>
@etep etep requested a review from a team August 29, 2023 00:39
@zasgar zasgar merged commit bbcd2d0 into pixie-io:main Aug 29, 2023
benkilimnik pushed a commit to benkilimnik/pixie-privy that referenced this pull request Sep 5, 2023
…ion. (pixie-io#1690)

Summary: To prevent older kernels from complaining about eBPF
instruction count, mux protocol tracing is only enabled for "newer"
kernels. In our test case, we want to enable mux tracing. We fix test
`netty_tls_trace_bpf_test.cc` by enabling mux protocol tracing using the
test `SetUp` method (and we simultaneously disable a few other protocols
to save on eBPF instruction count). Previously, we used an init
function, but that was rendered ineffective after we switched our flags
from command line args. to env. args.

Type of change: /kind bug fix

Test Plan: Existing tests.

Signed-off-by: Pete Stevenson <jps@pixielabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants