Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp107726rdb; Mon, 22 Jan 2024 13:37:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFASOzskbLIazHIoWLSWLwjr0hKXVgvxO5EAfoZ1c78ANDlg7zDnfXXnm+iROTjSBxkS3l3 X-Received: by 2002:a05:6214:626:b0:681:7963:11ca with SMTP id a6-20020a056214062600b00681796311camr6998564qvx.126.1705959443692; Mon, 22 Jan 2024 13:37:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705959443; cv=pass; d=google.com; s=arc-20160816; b=WoIE4rlBoHqI6Eu/cRxGmds5ItQN1gRFpmiikVy+lPeqD9wnDwfYEuLdc//lOsZHmm KDKNXCYQkvA5DVELh479w1uDZsvwKlS3reWVqyJWCejbNiL9nxUH2BJTyOvo4GzAAmL8 hFtIhGRhVLDVuABakAO0/P2GxILusuzJMVG6J8FhQUM3knTMbPykqYvDtdDzdPJI7rWe lajASoKt9+z2i8h3yB5CcaiLqwsTF4ADapvqs832fytORgf571RMj+CLDzBy2zQ5/cp6 dyg4pVFpF5IOLCIPaysoiMpAkhosBB5oZFOYzBD+NUkNdvyUhEcfZOc3g6zmxKncPMzj ilww== 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=5ohIM+QBLSzmN75oEYt6DocSn1ONwoFPk6+o1PYHvXM=; fh=6HaMp1BXXlqfynzWRb/8+Vz9FIWVBwzNGwm6rReVpng=; b=O77bvfARUOttJXSp1vn+pymdCYKoV2WYvlOJiynIceWvNIAYraMMEo9RLghr9sUtz/ XZu4BpQBgltFAHBHKVxZ+659jTQnvgpi1gqnxgVxW8C1yPRV0Jm926/s2H43Z1/IW1CE xFnw65b0ocWRZDKhXpWGtToVRRGBcaIwf52zD6VziRjda+79w4XOS/pmhDnd4mH/NrJx W9uSUc+cAFPK9pVw3zEEN76+3n1S7zIC7K/UfxxBdS/MftOu27yGtAW7fNWqKHX52M6C 7Ihn0Tzt+FYHN+TuUWsdWgBAXFFT3c0TCeRnG7GypB2OFmVmlUtEWr8gti7rgj0f7o40 GjKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LBqEgZfD; 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-34203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34203-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i22-20020a0cab56000000b0067f0cb35d16si6540537qvb.411.2024.01.22.13.37.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:37:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LBqEgZfD; 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-34203-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34203-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 737D91C22257 for ; Mon, 22 Jan 2024 21:37:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C8DA481C6; Mon, 22 Jan 2024 21:37:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="LBqEgZfD" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 8A81E47F66 for ; Mon, 22 Jan 2024 21:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959435; cv=none; b=fMiRDg7Si3wSBNf/TCayGv55HMLbHSLydiyPU64VM924ZyGSGuh5KWp8t1fEKL+bMHl9K5DhWFKife3DKDMHOOQH+Q4LT57JoG6HXshzq0pMg2oWuTydvWLuvtHgS3ldwi9r0QUGmQV3TVrS+ZNJ0GU4VkhmAY5yKSqveqfkPHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705959435; c=relaxed/simple; bh=HNTtOHdJXNAt7afBOtGBu0agxiWRvw0w3IbNe3pA13s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RtvDw2FsWStkcXZSaHBGZGoC9rzcMq6Fo36Rv1g6lpU9jUL+iLBBRjhjdDUKJTTWobxViwm24fB3sQ/r8hC9X4LH059ue8Vn5Os/leyDuWjSjZm4I7X/6/7lyOzKWyCyXNcrpH17QOXbFC7UIOBsSOHmY6Uek20RIVtAqT5/5Dw= 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=LBqEgZfD; arc=none smtp.client-ip=209.85.214.182 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-f182.google.com with SMTP id d9443c01a7336-1d70b0e521eso26438605ad.1 for ; Mon, 22 Jan 2024 13:37:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705959434; x=1706564234; 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=5ohIM+QBLSzmN75oEYt6DocSn1ONwoFPk6+o1PYHvXM=; b=LBqEgZfDtM5qGvIPatKQoM5JBD8E4vd4gVfWjbZh/PQWIZt8CeMUARdrqEekvMe9R6 /VuKCnHfTo5CXltB7VXNPWEpvd6lWRglRRV04z4a9WtWf7SQhJbGtz+ONw8C35gHmyls CCbqQBAYw8v+/yaETCwt9hgLqIIsFGM40t6Ko= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705959434; x=1706564234; 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=5ohIM+QBLSzmN75oEYt6DocSn1ONwoFPk6+o1PYHvXM=; b=PlarGF2laVPyNNZ4RAATlw9Yu2FMd0MrbpKRLJzOu/miOimpG/vbp92MIBEd0870Vc aTcNCBSUveHMcMXJLpsXF04uX4Z88zcVfwJ1cyG/2UBoiNLX5F2n+hS/Pj+XHdGNiffk 3HFEjNeY6/XWM5lOje47v/jQ4BQiOSwXkODuNLoK188sIFZA0Le+mDqWP46cXmxwTYfP QBnWP14fHkvhHSMXRioBOqmpMx5RnEGxSbe8vdoItqwO1u1jbg79TmCmaFQzRqwrOKvX O2qehyeVtvc3s8WQjDEs4pbS6nkEwvSnGH3sbTBANj16bcxesuES5S8tvms7O4a4AiYp M4xw== X-Gm-Message-State: AOJu0Yx2OEVhtdid4ZQ6uQPiGk64RUmmzm8FTxUddeeI4EXoVlri4S0J kQXxmsTaoDQOcRhn+AO6N0CGK/5FB6JEJEWeykyJJBMAgT5q6zRCGKcwk0Lyig== X-Received: by 2002:a17:902:d505:b0:1d7:407e:4182 with SMTP id b5-20020a170902d50500b001d7407e4182mr3650157plg.101.1705959433868; Mon, 22 Jan 2024 13:37:13 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id x20-20020a170902ea9400b001d0cfd7f6b9sm7649182plb.54.2024.01.22.13.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 13:37:13 -0800 (PST) Date: Mon, 22 Jan 2024 13:37:12 -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 1/2] kselftest/seccomp: Use kselftest output functions for benchmark Message-ID: <202401221337.8A3B228688@keescook> References: <20240122-b4-kselftest-seccomp-benchmark-ktap-v3-0-785bff4c04fd@kernel.org> <20240122-b4-kselftest-seccomp-benchmark-ktap-v3-1-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-1-785bff4c04fd@kernel.org> On Mon, Jan 22, 2024 at 09:08:17PM +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