Commit 55ac0c07 authored by Philip Carns's avatar Philip Carns

noted differences in 1.21 and 1.22 log format versions, added utility

function to print them out


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@121 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 63161d1e
......@@ -268,3 +268,49 @@ void darshan_log_close(darshan_fd file)
gzclose(file);
}
/* darshan_log_print_version_warnings()
*
* Print summary of any problems with the detected log format
*/
void darshan_log_print_version_warnings(struct darshan_job *job)
{
if(strcmp(job->version_string, "1.22") == 0)
{
/* nothing to do, this is the current version */
return;
}
if(strcmp(job->version_string, "1.21") == 0)
{
printf("# WARNING: version 1.21 log format does not support the following parameters:\n");
printf("# CP_INDEP_NC_OPENS\n");
printf("# CP_COLL_NC_OPENS\n");
printf("# CP_HDF5_OPENS\n");
printf("# CP_MAX_READ_TIME_SIZE\n");
printf("# CP_MAX_WRITE_TIME_SIZE\n");
printf("# CP_F_MAX_READ_TIME\n");
printf("# CP_F_MAX_WRITE_TIME\n");
return;
}
fprintf(stderr, "Error: version %s not supported by parser.\n",
job->version_string);
return;
}
/*******************************
* version 1.21 to 1.22 differences
* - added:
* - CP_INDEP_NC_OPENS
* - CP_COLL_NC_OPENS
* - CP_HDF5_OPENS
* - CP_MAX_READ_TIME_SIZE
* - CP_MAX_WRITE_TIME_SIZE
* - CP_F_MAX_READ_TIME
* - CP_F_MAX_WRITE_TIME
* - changed params:
* - CP_FILE_RECORD_SIZE: 1184 to 1240
* - CP_NUM_INDICES: 133 to 138
* - CP_F_NUM_INDICES: 12 to 14
* - so 56 bytes worth of new indices are the only difference
*/
......@@ -17,5 +17,6 @@ int darshan_log_getjob(darshan_fd file, struct darshan_job *job);
int darshan_log_getfile(darshan_fd fd, struct darshan_file *file);
int darshan_log_getexe(darshan_fd fd, char *buf, int *flag);
void darshan_log_close(darshan_fd file);
void darshan_log_print_version_warnings(struct darshan_job *job);
#endif
......@@ -46,6 +46,9 @@ int main(int argc, char **argv)
return(-1);
}
/* warn user about any missing information in this log format */
darshan_log_print_version_warnings(&job);
ret = darshan_log_getexe(file, tmp_string, &no_files_flag);
if(ret < 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment