Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cristian Simarro
darshan
Commits
3b0c668b
Commit
3b0c668b
authored
Dec 02, 2015
by
Shane Snyder
Browse files
update logutils to read uncompressed log files
parent
bdb2a5f0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
darshan-log-format.h
View file @
3b0c668b
...
...
@@ -77,9 +77,9 @@ static char * const darshan_module_names[] =
/* compression method used on darshan log file */
enum
darshan_comp_type
{
DARSHAN_NO_COMP
,
DARSHAN_ZLIB_COMP
,
DARSHAN_BZIP2_COMP
,
DARSHAN_NO_COMP
,
};
typedef
uint64_t
darshan_record_id
;
...
...
darshan-util/darshan-convert.c
View file @
3b0c668b
...
...
@@ -250,7 +250,7 @@ int main(int argc, char **argv)
if
(
!
infile
)
return
(
-
1
);
comp_type
=
bzip2
?
comp_type
=
DARSHAN_BZIP2_COMP
:
DARSHAN_ZLIB_COMP
;
comp_type
=
bzip2
?
DARSHAN_BZIP2_COMP
:
DARSHAN_ZLIB_COMP
;
outfile
=
darshan_log_create
(
outfile_name
,
comp_type
,
infile
->
partial_flag
);
if
(
!
outfile
)
{
...
...
darshan-util/darshan-logutils.c
View file @
3b0c668b
This diff is collapsed.
Click to expand it.
darshan-util/darshan-logutils.h
View file @
3b0c668b
...
...
@@ -29,6 +29,8 @@ struct darshan_fd_s
int
swap_flag
;
/* flag indicating whether a log file contains partial data */
int
partial_flag
;
/* compression type used on log file */
enum
darshan_comp_type
comp_type
;
/* log file offset/length maps for each log file region */
struct
darshan_log_map
job_map
;
struct
darshan_log_map
rec_map
;
...
...
darshan-util/darshan-parser.c
View file @
3b0c668b
...
...
@@ -199,6 +199,7 @@ int main(int argc, char **argv)
int
mask
;
int
i
,
j
;
char
*
filename
;
char
*
comp_str
;
char
tmp_string
[
4096
]
=
{
0
};
darshan_fd
fd
;
struct
darshan_job
job
;
...
...
@@ -263,8 +264,18 @@ int main(int argc, char **argv)
return
(
-
1
);
}
if
(
fd
->
comp_type
==
DARSHAN_ZLIB_COMP
)
comp_str
=
"ZLIB"
;
else
if
(
fd
->
comp_type
==
DARSHAN_BZIP2_COMP
)
comp_str
=
"BZIP2"
;
else
if
(
fd
->
comp_type
==
DARSHAN_NO_COMP
)
comp_str
=
"NONE"
;
else
comp_str
=
"UNKNOWN"
;
/* print job summary */
printf
(
"# darshan log version: %s
\n
"
,
fd
->
version
);
printf
(
"# compression method: %s
\n
"
,
comp_str
);
printf
(
"# exe: %s
\n
"
,
tmp_string
);
printf
(
"# uid: %"
PRId64
"
\n
"
,
job
.
uid
);
printf
(
"# jobid: %"
PRId64
"
\n
"
,
job
.
jobid
);
...
...
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