@@ -287,7 +287,7 @@ def __repr__(self):
287287 fn_name = "trace_inbound_message" )
288288 ctx .enable_probe (probe = "net:outbound_message" ,
289289 fn_name = "trace_outbound_message" )
290- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
290+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
291291
292292 EXPECTED_INOUTBOUND_VERSION_MSG = 1
293293 checked_inbound_version_msg = 0
@@ -345,7 +345,7 @@ def inbound_conn_tracepoint_test(self):
345345 ctx = USDT (pid = self .nodes [0 ].process .pid )
346346 ctx .enable_probe (probe = "net:inbound_connection" ,
347347 fn_name = "trace_inbound_connection" )
348- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
348+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
349349
350350 inbound_connections = []
351351 EXPECTED_INBOUND_CONNECTIONS = 2
@@ -382,7 +382,7 @@ def outbound_conn_tracepoint_test(self):
382382 ctx = USDT (pid = self .nodes [0 ].process .pid )
383383 ctx .enable_probe (probe = "net:outbound_connection" ,
384384 fn_name = "trace_outbound_connection" )
385- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
385+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
386386
387387 # that the handle_* function succeeds.
388388 EXPECTED_OUTBOUND_CONNECTIONS = 2
@@ -423,7 +423,7 @@ def evicted_inbound_conn_tracepoint_test(self):
423423 ctx = USDT (pid = self .nodes [0 ].process .pid )
424424 ctx .enable_probe (probe = "net:evicted_inbound_connection" ,
425425 fn_name = "trace_evicted_inbound_connection" )
426- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
426+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
427427
428428 EXPECTED_EVICTED_CONNECTIONS = 2
429429 evicted_connections = []
@@ -460,7 +460,7 @@ def misbehaving_conn_tracepoint_test(self):
460460 ctx = USDT (pid = self .nodes [0 ].process .pid )
461461 ctx .enable_probe (probe = "net:misbehaving_connection" ,
462462 fn_name = "trace_misbehaving_connection" )
463- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
463+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
464464
465465 EXPECTED_MISBEHAVING_CONNECTIONS = 2
466466 misbehaving_connections = []
@@ -494,7 +494,7 @@ def closed_conn_tracepoint_test(self):
494494 ctx = USDT (pid = self .nodes [0 ].process .pid )
495495 ctx .enable_probe (probe = "net:closed_connection" ,
496496 fn_name = "trace_closed_connection" )
497- bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = [ "-Wno-error=implicit-function-declaration" ] )
497+ bpf = BPF (text = net_tracepoints_program , usdt_contexts = [ctx ], debug = 0 , cflags = bpf_cflags () )
498498
499499 EXPECTED_CLOSED_CONNECTIONS = 2
500500 closed_connections = []
0 commit comments