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
Sudheer Chunduri
darshan
Commits
f1408a7d
Commit
f1408a7d
authored
Feb 03, 2017
by
Philip Carns
Browse files
set mmap counter to -1 if disabled
parent
3a244907
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-posix.c
View file @
f1408a7d
...
...
@@ -1349,6 +1349,10 @@ static struct posix_file_record_ref *posix_track_new_file_record(
file_rec
->
base_rec
.
rank
=
my_rank
;
file_rec
->
counters
[
POSIX_MEM_ALIGNMENT
]
=
darshan_mem_alignment
;
file_rec
->
counters
[
POSIX_FILE_ALIGNMENT
]
=
fs_info
.
block_size
;
#ifndef DARSHAN_WRAP_MMAP
/* set invalid value here if MMAP instrumentation is disabled */
file_rec
->
counters
[
POSIX_MMAPS
]
=
-
1
;
#endif
/* undefined DARSHAN_WRAP_MMAP */
rec_ref
->
fs_type
=
fs_info
.
fs_type
;
rec_ref
->
file_rec
=
file_rec
;
posix_runtime
->
file_rec_count
++
;
...
...
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