Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 09:27:58 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r261012 - user/pho/stress2/misc
Message-ID:  <201401220927.s0M9Rwuo059774@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Wed Jan 22 09:27:58 2014
New Revision: 261012
URL: http://svnweb.freebsd.org/changeset/base/261012

Log:
  Added the option of an external filter script for syscall tests.
  
  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	Wed Jan 22 09:25:16 2014	(r261011)
+++ user/pho/stress2/misc/syscall5.sh	Wed Jan 22 09:27:58 2014	(r261012)
@@ -82,6 +82,11 @@ while [ $n -gt 0 ]; do
 	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
+		name=`../tools/exclude_syscall.sh $n`
+		[ $name = "Excluded" ] &&
+		    { n=$((n - 1)); continue; }
+	fi
 	echo "`date '+%T'` syscall $n ($name)" | 
 		tee /dev/tty >> ./syscall5.log
 	printf "`date '+%T'` syscall $n ($name)\r\n" > /dev/console



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401220927.s0M9Rwuo059774>