Date: Tue, 22 Apr 2014 11:08:33 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r264760 - user/pho/stress2/misc Message-ID: <201404221108.s3MB8Xmu081642@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404221108.s3MB8Xmu081642>