Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp107717rdb; Mon, 22 Jan 2024 13:37:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkVP9VLVPuW6CivuGOSbRI9D+9LCwXSGovjfimUgSLzjpYXTkH4+RxCGCXj3Qaz8fo8X41 X-Received: by 2002:a17:902:ea01:b0:1d7:4681:c501 with SMTP id s1-20020a170902ea0100b001d74681c501mr1581605plg.59.1705959441429; Mon, 22 Jan 2024 13:37:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705959441; cv=pass; d=google.com; s=arc-20160816; b=GSv6Az9Yv65p3WjTot4T0fw/idUgSwVEv7LqS+KCJz0ksLF6EgIVzFkitzLiEQJ4+o 9i/z0kmrk4srlv+Rp5eqBs4g0+6k3eBCRexs+sZe/us/lwgo7b6FUyMPC7IRVjA6/M4Q fdInyUbJxN2asvDxPTcknH/ubmPrxQtIm2XPrBVJRswQJTnCrHX6Lf0XKriW4n9PQFZC 1A5ZnhjxQfPCpLtKYPI1GGyiUWsNFCArjEGtAlbmfPAAqum1osRwyTtCyajlm0c4YpWP 9y9btjvhz/zenEYCn7oP1UW1twdE1XTjUjCVUf4r3qdfjLgLwJ+TcIz9MW0eE93g/YLD JSqw== 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=TnqfpAGlSXCay/dPTpxKevvMK2f98rL8aVLpxsEQwh8=; fh=6HaMp1BXXlqfynzWRb/8+Vz9FIWVBwzNGwm6rReVpng=; b=Gzvo9Hw1HRhv5JEYVBJgcMWFruuwX4z864GJ8cfp5Ps6moheqgdUR7YZ/yG8FHZzvs illES+YBl1ErM04JgSU+/hq6lGR6gpB/zWGgxVk4nRzpHvbW7WLWsUrrdAyshw4klvQB zJRIj42e9nFn7/zIqTfWsN46SL7udlh63QRelDxUt0N6Md6XHlNC3z6SwVGnfbtxQvQZ cwYLcUcR/BmtRwPCTfQs39lrMMTOAUsYxlm3GSzz7RXW1AgLMlK58B4/4FMr/EhPv393 dw/3DjFbEM2/79hqT7IeoBePEAFduIoJ3D0R1VlMnymaa1+mrrqqRzEh1E7rXvrXwsIv /eGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k8iBUnCx; 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-34196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c7-20020a170902b68700b001d7307a0423si4479478pls.485.2024.01.22.13.37.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:37:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k8iBUnCx; 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-34196-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34196-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1B759B213C1 for ; Mon, 22 Jan 2024 21:34:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B93D487B7; Mon, 22 Jan 2024 21:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="k8iBUnCx" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 1D8E4481AF for ; Mon, 22 Jan 2024 21:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959097; cv=none; b=b6cUcqtx12OauehehkfNKK3GzDryaWbuKPMJlGk3Lh8j0x6kqT4YAHsDUV+49hzH1qKZszUEnyGzS/omNOnNCQAO3eAT+SuoqwhxStZCwbAl89o+FCyfMGSjSH5iIStoQxYTsDffxO7AmRp2hhVfQQoe7dedpLBoAqYwzZL4VD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959097; c=relaxed/simple; bh=ZT0OpjSVGgwunUY5YCyRq+HC+sk5few4F7ciRIXkoi0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rE8at5UJZKffGcdaAfUcY/kqh73b3gZvOs1JRf9mPFFy2YLxmazVQyl6IpSJsGixEXDEG4zlxDkdtoHfgOvPCehNzr2UNV5HOllk1yL98N/lwpvEIU0pFE39gQpyolytfa4PTzop4z+7TSFWkbdEPLpSegM2Z6N838ay9Pk11yE= 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=k8iBUnCx; arc=none smtp.client-ip=209.85.214.180 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-pl1-f180.google.com with SMTP id d9443c01a7336-1d7431e702dso9797975ad.1 for ; Mon, 22 Jan 2024 13:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705959095; x=1706563895; 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=TnqfpAGlSXCay/dPTpxKevvMK2f98rL8aVLpxsEQwh8=; b=k8iBUnCxiCZzgGo+MKeB4HLzjfb6GgPmS4tICxxfsPtkXX31xz9uduOEQwhtu5IeKO KGkpQjOkZEuLZ5n+ZMabmCz08XEz0DqT1HTTUZKHrpqrSzQpAGh+SX3eeVN1UncG22nE k0H1oOANVR7uHFhGmgU7pw3c2RG3wEyikfaZk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705959095; x=1706563895; 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=TnqfpAGlSXCay/dPTpxKevvMK2f98rL8aVLpxsEQwh8=; b=GRKfPbPx8ZOokUhEy7zAfzMqHDGWGHKpGjY0WzSg7idkrtBcARDpu+RXRO2l3TsQ26 IDGPgNdT/34TbSFPWJhryvmF+h3J8GwHcY1LaAuIgzkbJQu5mDBz2I71qR6OkEJ25aZL gbiMDpTGAFfG4XG3GBaZC0riIDP3ahicrt+zkXKedpQAab1FSMmJZoLqKWXdPk1co3LE /AaeIBwMEawlTTb6ECXoy0NrRWIEv6srqUSqtRUy3h+JLVNSbEGrml1aIik5+W8zXXrg JBG313auPyCPVmztXy2fT326s/OBZcMSalapI6yCZ1DLM/Cj6O+yA7dvUK65uBfltaHd 0AJg== X-Gm-Message-State: AOJu0YyoK5vjGor8TkDc2a7NoEetGg6xC32JbQb2dhlVfOgDoSdOLWJl gCVl16p1z0Yb33+pkR6tphzABlKnOlx38MIpagQMqbkSjkodue5INVxqPH0yVQ== X-Received: by 2002:a17:902:6a87:b0:1d4:be4b:8ff8 with SMTP id n7-20020a1709026a8700b001d4be4b8ff8mr2290503plk.125.1705959095518; Mon, 22 Jan 2024 13:31:35 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id kf13-20020a17090305cd00b001d0ca40158dsm7691902plb.280.2024.01.22.13.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:31:34 -0800 (PST) Date: Mon, 22 Jan 2024 13:31:34 -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 v2 1/2] kselftest/seccomp: Use kselftest output functions for benchmark Message-ID: <202401221331.313C61FDB0@keescook> References: <20240122-b4-kselftest-seccomp-benchmark-ktap-v2-0-aed137eaea41@kernel.org> <20240122-b4-kselftest-seccomp-benchmark-ktap-v2-1-aed137eaea41@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-v2-1-aed137eaea41@kernel.org> On Mon, Jan 22, 2024 at 04:04:15PM +0000, Mark Brown wrote: > In preparation for trying to output the test results themselves in TAP > format rework all the prints in the benchmark to use the kselftest output > functions. The uses of system() all produce single line output so we can > avoid having to deal with fully managing the child process and continue to > use system() by simply printing an empty message before we invoke system(). > We also leave one printf() used to complete a line of output in place. > > Tested-by: Anders Roxell > Signed-off-by: Mark Brown Acked-by: Kees Cook -- Kees Cook