systemc: Get rid of --working-dir in the test's config.py.
[gem5.git] / tests / diff-out
index 0a678a26784118827df6b16ab236e3ea018817ab..1eeac81379980eefe00b4dc3db1cbedfed5f86eb 100755 (executable)
@@ -186,6 +186,7 @@ sub pct_diff
   'host_seconds' => 1,
   'host_tick_rate' => 1,
   'host_inst_rate' => 1,
+  'host_op_rate' => 1,
   'host_mem_usage' => 1
 );
 
@@ -194,12 +195,13 @@ sub pct_diff
 #  ==> list stats here WITHOUT trailing thread ID
 #
 @key_stat_list = (
-  'COM:IPC',
-  'ISSUE:MSIPC',
-  'COM:count',
-  'host_inst_rate',
+  'ipc',
+  'committedInsts',
+  'committedOps',
   'sim_insts',
+  'sim_ops',
   'sim_ticks',
+  'host_inst_rate',
   'host_mem_usage'
 );
 
@@ -359,8 +361,12 @@ if ($added_stats)
 }
 
 cleanup();
-# Exit code is 0 if all stats are found (with no extras) & no stats error, 1 otherwise
-$status = ($missing_stats == 0 && $added_stats == 0 && $max_err_mag == 0.0) ? 0 : 1;
+# Exit codes:
+# 0 if all stats are found (with no extras) & no stats error
+# 1 if there are additional stats, but no stat errors
+# 2 otherwise
+$no_hard_errors = $missing_stats == 0 && $max_err_mag == 0.0;
+$status = $no_hard_errors ? ($added_stats == 0 ? 0 : 1) : 2;
 exit $status;
 
 sub cleanup