From adca31b9bfa537da927a21fdb8e65891f0a02c53 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Thu, 14 Nov 2024 16:30:50 -0500 Subject: Changes left by Tyler on tama Found while cleaning up and removing his home directory --- extra.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extra.h') diff --git a/extra.h b/extra.h index a4a3d9c..1fdbda7 100644 --- a/extra.h +++ b/extra.h @@ -163,6 +163,10 @@ static void _rt_load_params_itrl(int argc, char **argv) { perror("Unable to allocate buffer for execution times"); exit(1); } + memset(_rt_start_time, 0, _rt_max_jobs * _rt_will_output * sizeof(long long)); + memset(_rt_end_time, 0, _rt_max_jobs * _rt_will_output * sizeof(long long)); + memset(_rt_exec_time, 0, _rt_max_jobs * _rt_will_output * sizeof(long long)); + #ifdef PAIRED // __rt_sem2_name happens to be the longest if (strlen(pairId) + strlen(_rt_sem2_name) > _ID_SZ) { @@ -370,6 +374,7 @@ static void _rt_save_job_result() { // Save all buffered timing results to disk static void _rt_write_to_file() { + fprintf(stderr, "finished\n"); char fileName[_RT_FILENAME_LEN]; FILE *fp; munlockall(); @@ -432,9 +437,11 @@ static void _rt_start_loop() { // FLUSH_CACHES return; } + #if LITMUS // static lt_t last = 0; if (_rt_jobs_complete == 0) { + // fprintf(stderr, "beginning..\n"); if(wait_for_ts_release() != 0){ perror("Unable to wait for taskset release"); exit(1); -- cgit v1.2.2