Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
e1ad9514
Commit
e1ad9514
authored
Jul 07, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 3.00 log version warning to darshan parser
parent
77323cd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
darshan-util/darshan-logutils.c
darshan-util/darshan-logutils.c
+13
-0
darshan-util/darshan-logutils.h
darshan-util/darshan-logutils.h
+1
-0
darshan-util/darshan-parser.c
darshan-util/darshan-parser.c
+3
-0
No files found.
darshan-util/darshan-logutils.c
View file @
e1ad9514
...
...
@@ -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 *
********************************************************/
...
...
darshan-util/darshan-logutils.h
View file @
e1ad9514
...
...
@@ -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() \
...
...
darshan-util/darshan-parser.c
View file @
e1ad9514
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment