Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
61
Issues
61
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
81683bb5
Commit
81683bb5
authored
Jun 08, 2018
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't sum invalid posix counters
parent
6639a912
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+2
-0
darshan-posix-logutils.c
darshan-util/darshan-posix-logutils.c
+2
-0
No files found.
darshan-runtime/lib/darshan-posix.c
View file @
81683bb5
...
...
@@ -1435,6 +1435,8 @@ static void posix_record_reduction_op(void* infile_v, void* inoutfile_v,
for
(
j
=
POSIX_OPENS
;
j
<=
POSIX_FDSYNCS
;
j
++
)
{
tmp_file
.
counters
[
j
]
=
infile
->
counters
[
j
]
+
inoutfile
->
counters
[
j
];
if
(
tmp_file
.
counters
[
j
]
<
0
)
/* make sure invalid counters are -1 exactly */
tmp_file
.
counters
[
j
]
=
-
1
;
}
tmp_file
.
counters
[
POSIX_MODE
]
=
infile
->
counters
[
POSIX_MODE
];
...
...
darshan-util/darshan-posix-logutils.c
View file @
81683bb5
...
...
@@ -387,6 +387,8 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag)
case
POSIX_SIZE_WRITE_1G_PLUS
:
/* sum */
agg_psx_rec
->
counters
[
i
]
+=
psx_rec
->
counters
[
i
];
if
(
agg_psx_rec
->
counters
[
i
]
<
0
)
/* make sure invalid counters are -1 exactly */
agg_psx_rec
->
counters
[
i
]
=
-
1
;
break
;
case
POSIX_MODE
:
case
POSIX_MEM_ALIGNMENT
:
...
...
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