Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp110752rdb; Mon, 22 Jan 2024 13:46:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1+Zma1JiIMEBTsbM2jvWfL1Is9odY/5txZtFh0jZA96vF3b559FqLpe3W60tM3UQvp4UH X-Received: by 2002:a05:6402:1d05:b0:55a:6f8d:39c1 with SMTP id dg5-20020a0564021d0500b0055a6f8d39c1mr139020edb.121.1705959974449; Mon, 22 Jan 2024 13:46:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705959974; cv=pass; d=google.com; s=arc-20160816; b=hqZsvKSrgLpds1oXvbAVrLkN7dw8iAm8hc1LAN9xIAPouHw9vumnSKI4Gkz9i6NNMg Rz17KR4xhi5yxrcwogdstMMNb2FGJf2iZEwlmFJ3iSDA6HI9KxwVDYpini754fiqFuE6 Kt1ipG8l1MxQyiU4AE83NGt1leSySb0XQEFM4HleVexiKBZTMJB24gvPOUmIISXKystN MMHutAg53LNjeae/HOA5/7cJyNDvpi/GrQyT8l4L32JjTuSnBwkdfwRrApXrbKaeizO3 O6QhTr41w+N0mGHoLyc8gYwwj1DTmDbvRsn5z5IYjH7IVYjPTgBdg+3YsrRJJQRX5sZD NhpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rqU+NpYqpqdwKjXYi9GIK+LK6032K0kbkQ16WNlrD6w=; fh=6HaMp1BXXlqfynzWRb/8+Vz9FIWVBwzNGwm6rReVpng=; b=1Jq2Pa7daL6gO95+J8pIN65v1Nek5xV2d3jEAMzK9pZaBuVdUU5vcHdR0cuvnojSxI Wf7zzyTzWyFf+UiFnYDfg7Z5qFLHTLGi4iXo1/lceCbdRn6eVjgDnQUOqIAGLedHzXZn PDwRy77EVFa5inQUhBOxOzRKLpDKLqeYtYo33rA7LZH/ZcrTXhK4D41ml6s5sEo2xWAS IrLOEmZ0Ypv1fsmcd/CqJw328YwEFTsezlnWMvMgTWFstmpyVwVecjhothggG4csiNTV 19QoQHAOHjHUcNR+JV9LrY0gJqZrpXFTttXJP3sutWnmXgN+VYIL2Z45v+cEHU1IqDoT uQ6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HFhIroaL; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-34204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h22-20020a056402281600b005553546b9dfsi9928966ede.648.2024.01.22.13.46.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HFhIroaL; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-34204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8E70F1F2B4E4 for ; Mon, 22 Jan 2024 21:37:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6E95481AB; Mon, 22 Jan 2024 21:37:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HFhIroaL" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29DF948783 for ; Mon, 22 Jan 2024 21:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959449; cv=none; b=qpEB+ecBaRNmN2lIFnDYmoAf/rNm1Trjrd5yd+6zjhdWRFyyHDTR5VuwIX4aTVop/XO824ceseuj51h9EE/2oGIIfwC/wz70D7H624rwkQ8ldpR5A7s09//SwQBn4gsXfCvMIJV+/KuKxmtzkj3M3sHlZTUQqRGhlNQwlxLnELY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959449; c=relaxed/simple; bh=5/pQLkcUiTNBJ4GWoxa48qJz8BKfFyRtcf11jSHyWm0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gonqjs+Ec4yDkYG52QM+OhZLhwyT/8qK7jBcGJF8UvlDqndodkLdkapaa4cdgo2jU41DgVTOyKx9LCb4KJfmKTmEkhtwKHC0PmHiY8lMRdr+2VRGzl4KxuOm+W37NoFVSVo8BUiJoJ+kc8y0yxL/0o8qO9encX4lUatpa59REss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=HFhIroaL; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6db0fdd2b8fso1717182b3a.2 for ; Mon, 22 Jan 2024 13:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705959446; x=1706564246; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rqU+NpYqpqdwKjXYi9GIK+LK6032K0kbkQ16WNlrD6w=; b=HFhIroaLSNyTV6TGCjVJ1CQmeB5IQeJ8zWcD1bmarkbaTKwA2JS4SwiHnirUx0+AJU rHzjgx3g+ae7lIWC6fFIl/Svnnz3qhVEv8zk+L58C6uaP7KHwrmvCo+mChDQ7FCiylft gkkcFHnCsqNRODy5K6PU1fCpPqdlGtFT+CiGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705959446; x=1706564246; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rqU+NpYqpqdwKjXYi9GIK+LK6032K0kbkQ16WNlrD6w=; b=mo5n7MZT1H4aDcxS2GtSeW3QrA2ypc9n+ASLsjPooTkHLTCmWLULft80z/G14iRC7B 1rFTIJ8fffQbcqc9yVOCzI2zvuGrNCuKt5MQlzT0kaDQns/5C254hvqOfa3QZ7eIPECt lGgMmSany+fXC1/uKMeghx2AoXf76kzVZupam4kgujyXRm7XtdqTxNPZl0JdX5BAeBj3 zVRe44rdQGkdirwC0ntu+fpyhA6Ry1+lX2fmxXQaoj6qvlzk/SF83CKU4oLAURrNdzDp 3cZ5kyP0qtO/tgiJ2/qXryxlmuRf8oq+LENgYMZSvGgnrQ0Q457Ou00jZv39vPTz40Lk paMw== X-Gm-Message-State: AOJu0YxI1PNVvMxSXicAIdDNHBEyM3UVWxhEnjB9o5vvso6RodlEmYD5 KgDQ6J5WkOZ5sJeWkAgFsgCd5RBXx5fBD8EY6KW4vj8Fm2S8F0fbX864RZKJkA== X-Received: by 2002:a17:902:d3d3:b0:1d7:199:cfc5 with SMTP id w19-20020a170902d3d300b001d70199cfc5mr2357522plb.117.1705959446562; Mon, 22 Jan 2024 13:37:26 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id f6-20020a056a000b0600b006d96d034befsm10119695pfu.30.2024.01.22.13.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:37:26 -0800 (PST) Date: Mon, 22 Jan 2024 13:37:25 -0800 From: Kees Cook To: Mark Brown Cc: Andy Lutomirski , Will Drewry , Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: Re: [PATCH v3 2/2] kselftest/seccomp: Report each expectation we assert as a KTAP test Message-ID: <202401221337.29DA621DC@keescook> References: <20240122-b4-kselftest-seccomp-benchmark-ktap-v3-0-785bff4c04fd@kernel.org> <20240122-b4-kselftest-seccomp-benchmark-ktap-v3-2-785bff4c04fd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240122-b4-kselftest-seccomp-benchmark-ktap-v3-2-785bff4c04fd@kernel.org> On Mon, Jan 22, 2024 at 09:08:18PM +0000, Mark Brown wrote: > The seccomp benchmark test makes a number of checks on the performance it > measures and logs them to the output but does so in a custom format which > none of the automated test runners understand meaning that the chances that > anyone is paying attention are slim. Let's additionally log each result in > KTAP format so that automated systems parsing the test output will see each > comparison as a test case. The original logs are left in place since they > provide the actual numbers for analysis. > > As part of this rework the flow for the main program so that when we skip > tests we still log all the tests we skip, this is because the standard KTAP > headers and footers include counts of the number of expected and run tests. > > Tested-by: Anders Roxell > Signed-off-by: Mark Brown Acked-by: Kees Cook -- Kees Cook