From owner-svn-src-user@FreeBSD.ORG Sun Feb 1 20:14:19 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FC2555B; Sun, 1 Feb 2015 20:14:19 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5462E83; Sun, 1 Feb 2015 20:14:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t11KEIam077512; Sun, 1 Feb 2015 20:14:18 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t11KEIYR077510; Sun, 1 Feb 2015 20:14:18 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201502012014.t11KEIYR077510@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Sun, 1 Feb 2015 20:14:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r278035 - user/pho/stress2/misc X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2015 20:14:19 -0000 Author: pho Date: Sun Feb 1 20:14:17 2015 New Revision: 278035 URL: https://svnweb.freebsd.org/changeset/base/278035 Log: Added a comment. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/mmap8.sh user/pho/stress2/misc/mmap9.sh Modified: user/pho/stress2/misc/mmap8.sh ============================================================================== --- user/pho/stress2/misc/mmap8.sh Sun Feb 1 20:00:08 2015 (r278034) +++ user/pho/stress2/misc/mmap8.sh Sun Feb 1 20:14:17 2015 (r278035) @@ -38,6 +38,7 @@ dir=/tmp odir=`pwd` cd $dir sed '1,/^EOF/d' < $odir/$0 > $dir/mmap8.c +# At one point during the fix development, only the thread version would panic cc -o mmap8 -Wall -Wextra mmap8.c || exit 1 cc -o mmap8p -Wall -Wextra mmap8.c -pthread || exit 1 rm -f mmap8.c @@ -63,6 +64,10 @@ main(void) size_t sz = 1; char *addr; +/* + * This is the minimum amount of C code it takes to panic the kernel. + * This is as submitted and thus not a complete and correct test program. + */ addr = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); if (addr == NULL) err(1, "mmap"); Modified: user/pho/stress2/misc/mmap9.sh ============================================================================== --- user/pho/stress2/misc/mmap9.sh Sun Feb 1 20:00:08 2015 (r278034) +++ user/pho/stress2/misc/mmap9.sh Sun Feb 1 20:14:17 2015 (r278035) @@ -38,6 +38,7 @@ dir=/tmp odir=`pwd` cd $dir sed '1,/^EOF/d' < $odir/$0 > $dir/mmap9.c +# At one point during the fix development, only the thread version would panic cc -o mmap9 -O2 -Wall -Wextra mmap9.c || exit 1 cc -o mmap9p -O2 -Wall -Wextra mmap9.c -lpthread || exit 1 rm -f mmap9.c @@ -63,6 +64,10 @@ main(void) size_t sz = 1; char *addr; +/* + * This is the minimum amount of C code it takes to panic the kernel. + * This is as submitted and thus not a complete and correct test program. + */ addr = mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); if (addr == NULL)