Commit e1ad9514 authored by Shane Snyder's avatar Shane Snyder

add 3.00 log version warning to darshan parser

parent 77323cd7
......@@ -763,6 +763,19 @@ void darshan_log_close(darshan_fd fd)
return;
}
void darshan_log_print_version_warnings(const char *version_string)
{
if(strcmp(version_string, "3.00") == 0)
{
printf("# WARNING: version 3.00 log format has the following limitations:\n");
printf("# - Partial instrumentation of stdio stream I/O functions not parsable by Darshan versions >= 3.1.0\n");
printf("# * Using darshan-logutils versions < 3.1.0, this data can be found in the following POSIX counters:\n");
printf("# * POSIX_FOPENS, POSIX_FREADS, POSIX_FWRITES, POSIX_FSEEKS\n");
}
return;
}
/********************************************************
* internal helper functions *
********************************************************/
......
......@@ -146,6 +146,7 @@ int darshan_log_get_mod(darshan_fd fd, darshan_module_id mod_id,
int darshan_log_put_mod(darshan_fd fd, darshan_module_id mod_id,
void *mod_buf, int mod_buf_sz, int ver);
void darshan_log_close(darshan_fd file);
void darshan_log_print_version_warnings(const char *version_string);
/* convenience macros for printing Darshan counters */
#define DARSHAN_PRINT_HEADER() \
......
......@@ -262,6 +262,9 @@ int main(int argc, char **argv)
return(-1);
}
/* print any warnings related to this log file version */
darshan_log_print_version_warnings(fd->version);
if(fd->comp_type == DARSHAN_ZLIB_COMP)
comp_str = "ZLIB";
else if (fd->comp_type == DARSHAN_BZIP2_COMP)
......
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