Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3715591ybt; Sun, 5 Jul 2020 04:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5UlCi/iyPl29ALcf/hSYswXsKkg4bHFek2bgtXbiZMokgt+gBYP0vgh04G1mpWMCaUGvB X-Received: by 2002:a50:8186:: with SMTP id 6mr51219938ede.45.1593949052570; Sun, 05 Jul 2020 04:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593949052; cv=none; d=google.com; s=arc-20160816; b=hjqYkGCQwd3MXaNeyKLOZ88tV81QxKTEhrlSfX8gFsuMZGPRxfLeHFnqamvB6W9bU7 1p1h8VKosgOWYBP7RYDQFlwUIWTrbVwFBnJSHjfxRB3EpFIJbtFGWIN9IDxwPjfr/4S0 00wPNS68U9A7HttjuHt7BM2exu7c/NWLYLrOVZloxRJXGPzRszQIcMpTyj77mo+rnnMt jBJOhndw6mW3cFatmfLezKDXtkoB+p6/6emClrX41frRLXNeLwh5emSlCrSS7DZK91qL VkJRqjXoA5Ep40krIeplulPY3gdtBs+GU3i84KkUNOV/IawW/jjP16/Q2er8LM/qXJ+o zWkA== 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=5iTFNG13it90hJBXOTbNQoN/9mfves3wTRdPpxlL0Js=; b=BAgTHm0A7qQSNW2Y+PznflmaSGe9RpeVkCVyqqdeL9tsWOIsbOlspQ11x/K9slibXU jP97ZALZ18rHENioef0oD1NhNmRB3GLVWPtiqyRG2wOh0t0GBdhkqMBWQ32Q4u0cig2c HaQzkvFsJq9sMD/6ibwVLyeAlYtK2iiJY1ouQhY4oPR4dJGZxbOmt9Hc3rut2KICPE4K 6i9/38vuzamApYbTqMn0cpxs28j+u4/g3I+ZfcJuXmeuBomDR8eIWzqDL1uLmRhihOfX byw2hi9+YvFRk0Jo4OOMRDO8FxTKV7m8nbneL9cZJl1zHI/YTdugokZOh5vBSdgmApPz Tl8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BuURtRM1; 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 g15si7603433edy.200.2020.07.05.04.37.08; Sun, 05 Jul 2020 04:37:32 -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=BuURtRM1; 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 S1726819AbgGELg5 (ORCPT + 99 others); Sun, 5 Jul 2020 07:36:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:53864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgGELg4 (ORCPT ); Sun, 5 Jul 2020 07:36:56 -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 A92B120723; Sun, 5 Jul 2020 11:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593949016; bh=94G3FO32Kyz6wpkKsaBq7CitAiXlUf0xrn8UFv2qFwo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BuURtRM1WoGQXApJms+b95y0FqDTuZ3MxD2CGCJQH8UG40SRvowIbe+vw1u+jtLq9 fs/IGt+2cSopQJiVBCfR5iRvUQGNfUuZYw3GwC5HSMsxFbW7p7Tn8KIfUVVrQ4olZW G356Ub9u8H7WFqQJMBmbF2W2Bn/40Fg+V/QZCi3U= Date: Sun, 5 Jul 2020 13:36:58 +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: <20200705113658.GA1224775@kroah.com> References: <20200704140250.423345-1-gregkh@linuxfoundation.org> <20200704140250.423345-4-gregkh@linuxfoundation.org> <20200705065514.GA34145@kroah.com> 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 Sun, Jul 05, 2020 at 01:24:07PM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Sun, Jul 5, 2020 at 8:55 AM Greg Kroah-Hartman > wrote: > > On Sat, Jul 04, 2020 at 08:38:26PM +0200, Geert Uytterhoeven wrote: > > > 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 > > > > > --- /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. > > Reading about seq_file behavior, did the commented-out test for > "/sys/kernel/debug/usb/devices" work? Yes it did, which means I need to go dig to try to find a "problem" seq_file procfs file to try to debug that behavior... thanks, greg k-h