From 9e1b9aa1b140a58e67ee73892f4984a7b81764fc Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 2 Nov 2011 19:32:56 +0100 Subject: [PATCH] Make the script work with GOMP_stream* and GOMP_batchQ* functions --- pipepar/display_streams | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipepar/display_streams b/pipepar/display_streams index 575ad3c..44b0923 100755 --- a/pipepar/display_streams +++ b/pipepar/display_streams @@ -18,7 +18,7 @@ action=$1 function fill_hashtables { - grep "^GOMP_stream_connect_view" | cut -d ' ' -f '2-' | while read stream thread view direction task + grep "^GOMP_\(stream\|batchQ\)_connect_view" | cut -d ' ' -f '2-' | while read stream thread view direction task do if (( 1 - ${+threads[$thread]} )) then @@ -123,7 +123,7 @@ function updates_infos { typeset -A streams - grep "^GOMP_stream_update \[out]" | cut -d ' ' -f '3-' | while read stream burstSize upStart upEnd + grep "^GOMP_\(stream\|batchQ\)_update \[out]" | cut -d ' ' -f '3-' | while read stream burstSize upStart upEnd do curVal=$(( (upEnd - upStart) * burstSize )) if (( ${+streams[$stream]} )) @@ -158,7 +158,7 @@ function stalls_infos { typeset -A streams - grep "^GOMP_stream_stall \[out]" | cut -d ' ' -f '3-' | while read stream burstSize stStart stEnd + grep "^GOMP_\(stream\|batchQ\)_stall \[out]" | cut -d ' ' -f '3-' | while read stream burstSize stStart stEnd do if (( ${+streams[$stream]} )) then