Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3584772ybt; Sat, 4 Jul 2020 23:55:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFzrewjAyOorPoWt3Bc5QDz9FFrVlwzt4dRVQVRX8I9Dmt8L3x6IKUB637ZOkEoAJcruDR X-Received: by 2002:aa7:d802:: with SMTP id v2mr41654921edq.77.1593932148304; Sat, 04 Jul 2020 23:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593932148; cv=none; d=google.com; s=arc-20160816; b=WQSg9SkDBW9qV6qlwiStNMFEla45OxB0hBbZ66qG371I8QWPYL9NZFp21BMYvm0iIG lSA92dS4dNmiqVmLw1BvVWMh5J7WSRjIau4VzVIUvG6LlIzZn0tu4fqrZ+o9qIZ/aXNC pbPsn0UZ4YyhHSUB9L+jBvZTfnjtQPmi6SCmGaYqfq9a6lbZZ1uaHNZJDC1ey8Z+MysR ljDb5k0GoCAIeqhbywsYm1jDs4+6RxnAO98svRklAEkMHvRRy8Uu7b86hSG4KCpl0uhX lFr3REE6oQOjDCaeuqQER2x8uGcQ8KP9eA6TuERgxLXIF8bXk30GNQ6CbFpaCqIB/TUG eKFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DXmR4nQNi+bDBCLiO7m9PQyJDDjf2ar4ubsv4FlrsP0=; b=fEteyr8vIXpvgUbvG24pnFCiGbC3ucWBBMCBx5eqYnWY8T8Ergd2rKaRJwZvljwDVU +6ST4nOeXSyvaoKDHyX5Queu9/E1K72KnB1vYBgBAyP2KdZO1okXNxbq2JL5gPxl4JCB kwjrXDeNBvZfece99MISsxPVZzKRXOEcM3tkikUe0saGV3Zn6GCgHnWmXtUVTYAR4GaP hQY2H45C356Ig4P1XpChC0n2eswTaAM7LFr1WMzHNdHkNFB1dDSXiJgNHC7krSUkoP5F UoMCeP5R0GcYTEFhfNntceXWOiDs1mxDJbw0fyCxfFoqXrraXL5rrUvbgfdC6xVJIqgI YxWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wb3qZj3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si10519035ejb.557.2020.07.04.23.55.25; Sat, 04 Jul 2020 23:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wb3qZj3C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbgGEGzS (ORCPT + 99 others); Sun, 5 Jul 2020 02:55:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:36596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgGEGzR (ORCPT ); Sun, 5 Jul 2020 02:55:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD96B20771; Sun, 5 Jul 2020 06:55:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593932117; bh=kBMlJanR1enACjjFDoR+XJ5J4RiDm9o74tcWF6LEt+U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wb3qZj3CnNZxBoPTvh7p6HB4/tGtTeV11dCiNMA1QWiwXZ2N8IyhuogdQUhlLNNOM NIKiy3C/HWOmNGuLmp3EhGI3R+XOAb15g4SCDejhGdQtisAf+WdoRNr55sAUXGCLNp J57TWI3lwdht4d84rQIRhIZ/Vh79TiUzX71QFP1o= Date: Sun, 5 Jul 2020 08:55:14 +0200 From: Greg Kroah-Hartman To: Geert Uytterhoeven Cc: Al Viro , "Michael Kerrisk (man-pages)" , Shuah Khan , Linux API , Linux FS Devel , Linux Kernel Mailing List , linux-man@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH 3/3] selftests: add readfile(2) selftests Message-ID: <20200705065514.GA34145@kroah.com> References: <20200704140250.423345-1-gregkh@linuxfoundation.org> <20200704140250.423345-4-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 04, 2020 at 08:38:26PM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Sat, Jul 4, 2020 at 4:05 PM Greg Kroah-Hartman > wrote: > > Test the functionality of readfile(2) in various ways. > > > > Also provide a simple speed test program to benchmark using readfile() > > instead of using open()/read()/close(). > > > > Signed-off-by: Greg Kroah-Hartman > > Any benchmark results to share? Yes, the readfile_speed.c file will show you that on your machine, I'll post the results of that for two of my machines when I send the next version of this patch series. > > > --- /dev/null > > +++ b/tools/testing/selftests/readfile/readfile.c > > > +static void readfile(const char *filename) > > +{ > > +// int root_fd; > > ??? Ugh, sorry about that, I obviously didn't clean up my last tests from this file, thanks for catching that. I should add more tests to validate the flag handling as well, will do all of that for the next version, thanks for noticing this. greg k-h