From owner-p4-projects@FreeBSD.ORG Wed Feb 3 22:53:25 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BC96A10656A3; Wed, 3 Feb 2010 22:53:24 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80F5E1065695 for ; Wed, 3 Feb 2010 22:53:24 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6D6E98FC16 for ; Wed, 3 Feb 2010 22:53:24 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o13MrOAn030482 for ; Wed, 3 Feb 2010 22:53:24 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o13MrOD6030480 for perforce@freebsd.org; Wed, 3 Feb 2010 22:53:24 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 3 Feb 2010 22:53:24 GMT Message-Id: <201002032253.o13MrOD6030480@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 174286 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 22:53:25 -0000 http://p4web.freebsd.org/chv.cgi?CH=174286 Change 174286 by rwatson@rwatson_vimage_client on 2010/02/03 22:52:48 Always do one "warmup" run of every test before the measured loops. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#15 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#15 (text+ko) ==== @@ -860,6 +860,10 @@ if (the_test == NULL) usage(); + /* + * Run one warmup, then do the real thing (loops) times. + */ + the_test->t_func(iterations); for (k = 0; k < loops; k++) { the_test->t_func(iterations); timespecsub(&ts_end, &ts_start);