Преглед изворни кода

Keep order of events when they have the same time

Samuel Thibault пре 11 година
родитељ
комит
4e93f7f8cb
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      tools/starpu_paje_draw_histogram.in
  2. 2 2
      tools/starpu_paje_state_stats.in

+ 2 - 2
tools/starpu_paje_draw_histogram.in

@@ -109,8 +109,8 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    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
+    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
     cat start.trace endSorted.trace > outputSorted.trace
 

+ 2 - 2
tools/starpu_paje_state_stats.in

@@ -110,8 +110,8 @@ for file in $inputfiles; do
 	exit 5
     fi
 # Sorting traces
-    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
+    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
     cat start.trace endSorted.trace > outputSorted.trace