[Darshan-commits] [Git][darshan/darshan][master] remove POSIX fstream references from job-summary

Shane Snyder xgitlab at cels.anl.gov
Mon Sep 12 13:32:27 CDT 2016


Shane Snyder pushed to branch master at darshan / darshan


Commits:
c877a1c1 by Shane Snyder at 2016-09-12T13:28:37-05:00
remove POSIX fstream references from job-summary

- - - - -


1 changed file:

- darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in


Changes:

=====================================
darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
=====================================
--- a/darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
+++ b/darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
@@ -396,9 +396,9 @@ close TIME_SUMMARY;
 open(PSX_OP_COUNTS, ">$tmp_dir/posix-op-counts.dat") || die("error opening output file: $!\n");
 print PSX_OP_COUNTS "# <operation>, <POSIX count>\n";
 print PSX_OP_COUNTS
-    "Read, ", $summary{POSIX_READS} + $summary{POSIX_FREADS}, "\n",
-    "Write, ", $summary{POSIX_WRITES} + $summary{POSIX_FWRITES}, "\n",
-    "Open, ", $summary{POSIX_OPENS} + $summary{POSIX_FOPENS}, "\n",
+    "Read, ", $summary{POSIX_READS}, "\n",
+    "Write, ", $summary{POSIX_WRITES}, "\n",
+    "Open, ", $summary{POSIX_OPENS}, "\n",
     "Stat, ", $summary{POSIX_STATS}, "\n",
     "Seek, ", $summary{POSIX_SEEKS}, "\n",
     "Mmap, ", $summary{POSIX_MMAPS}, "\n",
@@ -496,9 +496,9 @@ if (defined $summary{MPIIO_INDEP_OPENS})
 # sequential and consecutive access patterns
 open (PATTERN, ">$tmp_dir/pattern.dat") || die("error opening output file: $!\n");
 print PATTERN "# op total sequential consecutive\n";
-print PATTERN "Read, ", $summary{POSIX_READS} + $summary{POSIX_FREADS}, ", ",
+print PATTERN "Read, ", $summary{POSIX_READS}, ", ",
     $summary{POSIX_SEQ_READS}, ", ", $summary{POSIX_CONSEC_READS}, "\n";
-print PATTERN "Write, ", $summary{POSIX_WRITES} + $summary{POSIX_FWRITES}, ", ",
+print PATTERN "Write, ", $summary{POSIX_WRITES}, ", ",
     $summary{POSIX_SEQ_WRITES}, ", ", $summary{POSIX_CONSEC_WRITES}, "\n";
 close PATTERN;
 
@@ -1047,7 +1047,6 @@ sub process_file_record
     }
 
     if($file_record{'POSIX_OPENS'} == 0 &&
-        $file_record{'POSIX_FOPENS'} == 0 &&
         (!defined $file_record{'MPIIO_INDEP_OPENS'} ||
         ($file_record{'MPIIO_INDEP_OPENS'} == 0 && $file_record{'MPIIO_COLL_OPENS'} == 0)))
     {
@@ -1110,14 +1109,12 @@ sub process_file_record
     else
     {
         # posix file
-        if($file_record{'POSIX_READS'} > 0 ||
-            $file_record{'POSIX_FREADS'} > 0)
+        if($file_record{'POSIX_READS'} > 0)
         {
             # data was read from the file
             $hash_files{$hash}{'was_read'} = 1;
         }
-        if($file_record{'POSIX_WRITES'} > 0 ||
-            $file_record{'POSIX_FWRITES'} > 0)
+        if($file_record{'POSIX_WRITES'} > 0)
         {
             # data was written to the file 
             $hash_files{$hash}{'was_written'} = 1;



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


More information about the Darshan-commits mailing list