shithub: riscv

Download patch

ref: 7b368832344d8e7c68065f10323aa239eb0f3a8d
parent: ba9d8ec473242106d5041b8878fe76db624bd4a1
author: cinap_lenrek <[email protected]>
date: Fri Mar 9 18:56:05 EST 2012

tap: show pipename

--- a/rc/bin/tap
+++ b/rc/bin/tap
@@ -14,11 +14,12 @@
 
 fn traceqid {
 	while(! ~ $#* 0){
-		echo '['$2']' $1
+		echo '['$2']' $3 $1
 		tracepid `{grep -n `{otherqid $1} /proc/*/fd | sed 's!^/proc/([^/]+)/.*!\1!g'} \
 			| sed 's/^/	/g'
 		shift
 		shift
+		shift
 	}
 }
 
@@ -30,7 +31,7 @@
 			echo '	...'
 		case *
 			v=($1 $v)
-			traceqid `{awk '/\#\|\/data1?$/{q=substr($5,2);print q" "$1}' /proc/$1/fd} \
+			traceqid `{awk '/\|/{q=substr($5,2);print q" "$1" "$10}' /proc/$1/fd} \
 				| sed 's/^/	/g'
 		}
 		shift