diff --git a/darshan-util/darshan-logutils.c b/darshan-util/darshan-logutils.c index 5c933119644be961ba2cf29ab281cd0ceb2c372c..a77baba467842e46ba6b284a25e18cfa774b7c23 100644 --- a/darshan-util/darshan-logutils.c +++ b/darshan-util/darshan-logutils.c @@ -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 * ********************************************************/ diff --git a/darshan-util/darshan-logutils.h b/darshan-util/darshan-logutils.h index fb002c2c716abe96684273f5f904df0d9ea52d01..2b4f26cdfe3656f4b78e64746962285f65033e22 100644 --- a/darshan-util/darshan-logutils.h +++ b/darshan-util/darshan-logutils.h @@ -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() \ diff --git a/darshan-util/darshan-parser.c b/darshan-util/darshan-parser.c index d251cab57531b953c4a8914a4685b149bab821cd..c8d463668361fc1a4e974718fb6cea6d337bf543 100644 --- a/darshan-util/darshan-parser.c +++ b/darshan-util/darshan-parser.c @@ -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)