@@ -30,9 +30,9 @@ static const std::map<std::string, test_program_attributes> _test_program_info =
3030struct object_table_entry
3131{
3232 std::unique_ptr<std::mutex> lock{nullptr };
33- _Guarded_by_ (lock) bool available{ true };
34- _Guarded_by_ (lock) bpf_object_ptr object{ nullptr };
35- _Guarded_by_ (lock) bool loaded{ false };
33+ _Guarded_by_ (lock) bool available { true };
34+ _Guarded_by_ (lock) bpf_object_ptr object { nullptr };
35+ _Guarded_by_ (lock) bool loaded { false };
3636 bool attach{false };
3737
3838 // The following fields are for debugging this test itself.
@@ -353,7 +353,7 @@ _do_creator_work(thread_context& context, std::time_t endtime_seconds)
353353 // to force a race between 'load', 'attach' and 'destroy'.
354354 std::lock_guard lock (*entry.lock .get ());
355355
356- // Make sure entry is _still_ free (some other creator thread may have grabbed it)
356+ // Make sure entry is _still_ free (some other creator thread may have grabbed it).
357357 if (!entry.available ) {
358358 continue ;
359359 }
@@ -747,13 +747,13 @@ wait_and_verify_test_threads(
747747 std::vector<std::thread>& extension_restart_thread_table,
748748 std::vector<thread_context>& extension_restart_thread_context_table)
749749{
750- // Wait for all test threads
750+ // Wait for all test threads.
751751 LOG_VERBOSE (" waiting on {} test threads..." , thread_table.size ());
752752 for (auto & t : thread_table) {
753753 t.join ();
754754 }
755755
756- // Wait for all extension restart threads
756+ // Wait for all extension restart threads.
757757 if (test_control_info.extension_restart_enabled ) {
758758 LOG_VERBOSE (" waiting on {} extension restart threads..." , extension_restart_thread_table.size ());
759759 for (auto & t : extension_restart_thread_table) {
@@ -835,7 +835,7 @@ _mt_prog_load_stress_test(ebpf_execution_type_t program_type, const test_control
835835 context_entry.file_name = _make_unique_file_copy (program_attribs.native_file_name );
836836 } else {
837837
838- // Use the same file name for all 'creator' threads
838+ // Use the same file name for all 'creator' threads.
839839 context_entry.file_name = program_attribs.native_file_name ;
840840 }
841841 } else {
@@ -1042,7 +1042,7 @@ _invoke_test_thread_function(thread_context& context)
10421042 exit (-1 );
10431043 }
10441044
1045- // Set the timeout for connect attempts
1045+ // Set the timeout for connect attempts.
10461046 timeval timeout;
10471047 timeout.tv_sec = 5 ; // 5 seconds
10481048 timeout.tv_usec = 0 ;
@@ -1974,7 +1974,7 @@ _mt_load_stress_test_with_restart_timing(
19741974 if (test_control_info.extension_restart_enabled && !start_restart_before_load) {
19751975 // Wait for programs to load, then start extension restart.
19761976 LOG_INFO (" Waiting for programs to load, then starting extension restart" );
1977- std::this_thread::sleep_for (std::chrono::seconds (5 )); // Give programs time to load and attach
1977+ std::this_thread::sleep_for (std::chrono::seconds (5 )); // Give programs time to load and attach.
19781978 configure_extension_restart (
19791979 test_control_info,
19801980 extension_names,
@@ -2032,9 +2032,9 @@ _mt_invoke_stress_test_multiple_programs(ebpf_execution_type_t program_type, con
20322032 }
20332033
20342034 context_entry.program_name = " cgroup_sock_addr" ;
2035- context_entry.role = thread_role_type::CREATOR; // All threads are creators for this test
2035+ context_entry.role = thread_role_type::CREATOR; // All threads are creators for this test.
20362036 context_entry.thread_index = i;
2037- context_entry.compartment_id = i + 1 ; // Unique compartment IDs
2037+ context_entry.compartment_id = i + 1 ; // Unique compartment IDs.
20382038 context_entry.duration_minutes = test_control_info.duration_minutes ;
20392039 context_entry.extension_restart_enabled = test_control_info.extension_restart_enabled ;
20402040 }
0 commit comments