Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3710594ybt; Sun, 5 Jul 2020 04:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw23ne+RSSDjlB2oG435SCUcZkBeUUBNon1tB8FBsq98xjN8yn5gqpBF1QezDx4j1sd87bu X-Received: by 2002:aa7:dc46:: with SMTP id g6mr45984672edu.194.1593948435726; Sun, 05 Jul 2020 04:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593948435; cv=none; d=google.com; s=arc-20160816; b=d3P//eUQry1pe8WmNXDhCMfSylZlMoaLSieoH/HHsLtuFPxV3Rauv9pf/KMV+2AeUH h5+T2u18UY9JaKES7Eh4PktRYX2P9h13Oic/Svd8KmT9Fr9HH8ObiS3L7lgrorghdXZR fpZz3WRjlG9bfLdxTQN/9I0eJuxSu7esKZ90lyS98c0h/qDPjuj1dnO9bAgULW6RnmAT z68dwYnczJPP9m4dZIci6Ls3/EWZpdmfh/uUSrm24So/rSitOasOtNAvwkiqRMeejg1p 1kBJXcYd34oaJ/q+kWPjzLXPJgIH+qwFDwV9f/8jJF1PP2vHXluKE6okEJ3iQw2Q8NqU vQAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=HxueHSFVe1aY1SfjGzwH+5B9lPYaHFHBKRhJv4KWryk=; b=oCHZ9rVj9rsTcwGktJid1+o8/g0Qggs9GbzBQCz54ZxjxgunmqTJTetPdFVV1RfUmj pvOOyVcXeTSRBUP6Fjvs6fsGzNNkPo2iBkY5i9bwLmQD2MPCFxOGG5xZmiOK4VMIEgYP bNCkwX8sdo2Oig9k8kNRtleuN5dooFIebbcvLyP0uyj7Ql585bBnYll6FzpRbwyaTy7N INJ0PQiQr65ZlleheEwRcVkfKOUNA22himh8e57lAC7qWkJ+H1ciZsGkdC9uBihCJiAl YZ030Ni/gX6+UYIvW3EnsM4iiFKwT6D/lx5LKfvOhamkZSt3XjokeDqDFuO4T3Xdpvdo qbUg== ARC-Authentication-Results: i=1; mx.google.com; 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 y16si10877610ejw.207.2020.07.05.04.26.53; Sun, 05 Jul 2020 04:27:15 -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; 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 S1726819AbgGELYU (ORCPT + 99 others); Sun, 5 Jul 2020 07:24:20 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36334 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgGELYU (ORCPT ); Sun, 5 Jul 2020 07:24:20 -0400 Received: by mail-ot1-f68.google.com with SMTP id 72so29692648otc.3; Sun, 05 Jul 2020 04:24:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HxueHSFVe1aY1SfjGzwH+5B9lPYaHFHBKRhJv4KWryk=; b=nCWku/S1kkUEpt6XI/Vm3rAtbrZw+4HlOldVW6VCujhqHnbBLmpH3U77+YCRkbH278 hCZ4MjxAEKlFbrBrOnaaQ5oXD9ZNM7C6534DOdvRP/jNl3EqozlXI16+pOfQGuHZugVN SIKe+ZNfrJ+zII4aGBcu6plOEPj2BWIKxCKRrmoDKRmqMxwmCUTjoqjdiLKTtRIgFnbw yUWseV2Dr2QtoQHuOTi4Y9ahC8t5M1Y/niPPwFFRLzQmLYMzZ1syuPnFFspmz39exobB 58nedWlJIBgTfs77UQATqydRDWtw4X+H54k3hDNq4ce86DiCfONvURO3IXtnJQSiT/t4 z5jA== X-Gm-Message-State: AOAM530acvyzhicDfyPktu6HuKAVRB+MBQtSEwv9VN5PpmJbqjNq6TvF a31I9U9pBnOpQSJcrH7ZjUUHbIFJ2yX6EvjNdBI= X-Received: by 2002:a05:6830:1451:: with SMTP id w17mr25172162otp.250.1593948259060; Sun, 05 Jul 2020 04:24:19 -0700 (PDT) MIME-Version: 1.0 References: <20200704140250.423345-1-gregkh@linuxfoundation.org> <20200704140250.423345-4-gregkh@linuxfoundation.org> <20200705065514.GA34145@kroah.com> In-Reply-To: <20200705065514.GA34145@kroah.com> From: Geert Uytterhoeven Date: Sun, 5 Jul 2020 13:24:07 +0200 Message-ID: Subject: Re: [PATCH 3/3] selftests: add readfile(2) selftests To: Greg Kroah-Hartman 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds