ソースを参照

Pass stability option to sort tool, not grep :)

Samuel Thibault 11 年 前
コミット
e1e5feddca
共有2 個のファイルを変更した6 個の追加6 個の削除を含む
  1. 3 3
      tools/starpu_paje_draw_histogram.in
  2. 3 3
      tools/starpu_paje_state_stats.in

+ 3 - 3
tools/starpu_paje_draw_histogram.in

@@ -109,9 +109,9 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
-    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
-    sort -V --key=2,2 end.trace > endSorted.trace
+    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
+    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
+    sort -s -V --key=2,2 end.trace > endSorted.trace
     cat start.trace endSorted.trace > outputSorted.trace
 
 # Transferring to .csv

+ 3 - 3
tools/starpu_paje_state_stats.in

@@ -110,9 +110,9 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
-    grep -s -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
-    sort -V --key=2,2 end.trace > endSorted.trace
+    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' $file > start.trace
+    grep -e '^\(\(%\)\|\(\(1\|2\|3\|4\|5\|6\|7\|8\|9\)\>\)\)' -v $file > end.trace
+    sort -s -V --key=2,2 end.trace > endSorted.trace
     cat start.trace endSorted.trace > outputSorted.trace
 
 # Transferring to .csv