Commit 40d1dc03 authored by Shane Snyder's avatar Shane Snyder

darshan-util updates to support partial logs

parent 98c93e0f
......@@ -97,7 +97,6 @@ while($line = <PARSE_OUT>)
$f_save = "";
($junk, $cmdline) = split(':', $line, 2);
print("PRE: $cmdline\n");
# add escape characters if needed for special characters in
# command line
if ($cmdline =~ /<unknown args>/)
......@@ -108,7 +107,6 @@ while($line = <PARSE_OUT>)
$cmdline = substr($cmdline, 0, -14);
}
$cmdline = encode('latex', $cmdline) . $f_save;
print("POST: $cmdline\n");
}
elsif ($line =~ /^# nprocs: /)
{
......@@ -135,7 +133,7 @@ while($line = <PARSE_OUT>)
($junk, $version) = split(':', $line, 2);
$version =~ s/^\s+//;
}
elsif ($line =~ /^# \*WARNING\*: This Darshan log contains incomplete data!/)
elsif ($line =~ /^# \*WARNING\*: .* contains incomplete data!/)
{
$partial_flag = 1;
}
......
......@@ -322,11 +322,6 @@ int main(int argc, char **argv)
}
/* warn user if this log file is incomplete */
if(fd->partial_flag)
printf("\n# *WARNING*: This Darshan log contains incomplete data!\n"
"# This happens when an application creates\n"
"# more records than Darshan can track.\n");
pdata.rank_cumul_io_time = malloc(sizeof(double)*job.nprocs);
pdata.rank_cumul_md_time = malloc(sizeof(double)*job.nprocs);
if (!pdata.rank_cumul_io_time || !pdata.rank_cumul_md_time)
......@@ -370,6 +365,13 @@ int main(int argc, char **argv)
printf("# %s module data\n", darshan_module_names[i]);
printf("# *******************************************************\n");
/* print warning if this module only stored partial data */
if(DARSHAN_MOD_FLAG_ISSET(fd->partial_flag, i))
printf("\n# *WARNING*: The %s module contains incomplete data!\n"
"# This happens when a module runs out of\n"
"# memory to store new record data.\n",
darshan_module_names[i]);
if(mask & OPTION_BASE)
{
/* TODO: does each module print header of what each counter means??? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment