svn commit: r264760 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Tue Apr 22 11:08:34 UTC 2014


Author: pho
Date: Tue Apr 22 11:08:33 2014
New Revision: 264760
URL: http://svnweb.freebsd.org/changeset/base/264760

Log:
  The syscall number must be the last entry in the line.
  
  Sponsored by:	EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/syscall5.sh

Modified: user/pho/stress2/misc/syscall5.sh
==============================================================================
--- user/pho/stress2/misc/syscall5.sh	Tue Apr 22 11:02:37 2014	(r264759)
+++ user/pho/stress2/misc/syscall5.sh	Tue Apr 22 11:08:33 2014	(r264760)
@@ -79,7 +79,7 @@ start=`date '+%s'`
 while [ $n -gt 0 ]; do
 	ps -lUnobody | grep syscall4 | awk '{print $2}' | xargs kill
 	ln -fs $n .syscall5.last
-	name=`grep -w $n /usr/include/sys/syscall.h | awk '{print $2}' | 
+	name=`grep -w "$n$" /usr/include/sys/syscall.h | awk '{print $2}' |
 		sed 's/SYS_//'`
 	[ -z "$name" ] && name="unknown"
 	if [ -x ../tools/exclude_syscall.sh ]; then


More information about the svn-src-user mailing list