[Darshan-commits] [Git][darshan/darshan][master] set mmap counter to -1 if disabled

Philip Carns xgitlab at cels.anl.gov
Fri Feb 3 16:01:44 CST 2017


Philip Carns pushed to branch master at darshan / darshan


Commits:
f1408a7d by Phil Carns at 2017-02-03T22:01:22+00:00
set mmap counter to -1 if disabled

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-posix.c


Changes:

=====================================
darshan-runtime/lib/darshan-posix.c
=====================================
--- a/darshan-runtime/lib/darshan-posix.c
+++ b/darshan-runtime/lib/darshan-posix.c
@@ -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++;



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/f1408a7d802f97170d0019d58d185c23bc086bc1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20170203/cd225c53/attachment.html>


More information about the Darshan-commits mailing list