<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Shane Snyder pushed to branch dev-modular at <a href="https://xgitlab.cels.anl.gov/darshan/darshan">darshan / darshan</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214">48352d36</a></strong>
<div>
<span>by Shane Snyder</span>
<i>at 2015-10-29T16:13:28Z</i>
</div>
<pre class='commit-message'>make maximum runtime records configurable

use --with-max-records at configure time to change from default
of 2048 records</pre>
</li>
</ul>
<h4>4 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
darshan-runtime/configure
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
darshan-runtime/configure.in
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
darshan-runtime/darshan-core.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-3'>
darshan-runtime/darshan-runtime-config.h.in
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214#diff-0'>
<strong>
darshan-runtime/configure
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/darshan-runtime/configure
</span><span style="color: #000000;background-color: #ddffdd">+++ b/darshan-runtime/configure
</span><span style="color: #aaaaaa">@@ -693,6 +693,7 @@ with_log_hints
</span> with_log_path
 with_jobid_env
 enable_bgq_mod
<span style="color: #000000;background-color: #ddffdd">+with_max_records
</span> '
       ac_precious_vars='build_alias
 host_alias
<span style="color: #aaaaaa">@@ -1330,6 +1331,7 @@ Optional Packages:
</span>   --with-jobid-env=<name> Name of environment variable that stores the jobid
     (specify "NONE" if no appropriate environment variable is available:
     Darshan will use rank 0's pid instead)
<span style="color: #000000;background-color: #ddffdd">+  --with-max-records=<num>  Maximum records for Darshan to track at runtime
</span> 
 Some influential environment variables:
   CC          C compiler command
<span style="color: #aaaaaa">@@ -4278,6 +4280,22 @@ fi
</span> rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 fi
 
<span style="color: #000000;background-color: #ddffdd">+
+# Check whether --with-max-records was given.
+if test "${with_max_records+set}" = set; then :
+  withval=$with_max_records; if test x$withval = xyes; then
+        as_fn_error $? "--with-max-records must be given a number" "$LINENO" 5
+    else
+
+cat >>confdefs.h <<_ACEOF
+#define __DARSHAN_MAX_RECORDS ${withval}
+_ACEOF
+
+    fi
+
+fi
+
+
</span> DARSHAN_VERSION="3.0.0-pre1"
 
 
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214#diff-1'>
<strong>
darshan-runtime/configure.in
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/darshan-runtime/configure.in
</span><span style="color: #000000;background-color: #ddffdd">+++ b/darshan-runtime/configure.in
</span><span style="color: #aaaaaa">@@ -300,6 +300,15 @@ if test x$enable_bgq_mod != xno; then
</span>             []))
 fi
 
<span style="color: #000000;background-color: #ddffdd">+AC_ARG_WITH(max-records,
+[  --with-max-records=<num>  Maximum records for Darshan to track at runtime],
+    if test x$withval = xyes; then
+        AC_MSG_ERROR(--with-max-records must be given a number)
+    else
+        AC_DEFINE_UNQUOTED(__DARSHAN_MAX_RECORDS, ${withval}, Maximum Darshan records to track at runtime)
+    fi
+)
+
</span> DARSHAN_VERSION="AC_PACKAGE_VERSION"
 
 AC_SUBST(darshan_lib_path)
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214#diff-2'>
<strong>
darshan-runtime/darshan-core.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/darshan-runtime/darshan-core.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/darshan-runtime/darshan-core.h
</span><span style="color: #aaaaaa">@@ -26,7 +26,11 @@
</span> /* Environment variable to override __DARSHAN_MEM_ALIGNMENT */
 #define DARSHAN_MEM_ALIGNMENT_OVERRIDE "DARSHAN_MEMALIGN"
 
<span style="color: #000000;background-color: #ddffdd">+#ifdef __DARSHAN_MAX_RECORDS
+#define DARSHAN_CORE_MAX_RECORDS __DARSHAN_MAX_RECORDS
+#else
</span> #define DARSHAN_CORE_MAX_RECORDS 2048
<span style="color: #000000;background-color: #ddffdd">+#endif
</span> 
 /* TODO: revisit this default size if we change memory per module */
 #define DARSHAN_CORE_COMP_BUF_SIZE (2 * 1024 * 1024)
</code></pre>

<br>
</li>
<li id='diff-3'>
<a href='https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214#diff-3'>
<strong>
darshan-runtime/darshan-runtime-config.h.in
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/darshan-runtime/darshan-runtime-config.h.in
</span><span style="color: #000000;background-color: #ddffdd">+++ b/darshan-runtime/darshan-runtime-config.h.in
</span><span style="color: #aaaaaa">@@ -102,6 +102,9 @@
</span> /* Location to store log files at run time */
 #undef __DARSHAN_LOG_PATH
 
<span style="color: #000000;background-color: #ddffdd">+/* Maximum Darshan records to track at runtime */
+#undef __DARSHAN_MAX_RECORDS
+
</span> /* Memory alignment in bytes */
 #undef __DARSHAN_MEM_ALIGNMENT
 
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://xgitlab.cels.anl.gov/darshan/darshan/commit/48352d366d6530b22d3fc4a2821c8b7a7e3ea214"}}</script>
</p>
</div>
</body>
</html>