Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp143581ybl; Thu, 30 Jan 2020 18:54:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwBFHf4UppvjIkSgTtU1bq6TPLEZaLTfcVxN82i/Ynzmp0Mn1KJVV0arO9rEOLF8Z3cF9sR X-Received: by 2002:a05:6808:a9c:: with SMTP id q28mr5098317oij.176.1580439252529; Thu, 30 Jan 2020 18:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580439252; cv=none; d=google.com; s=arc-20160816; b=ik1xuQBR0UoS2ufA5pAAACpuVo58PJ0llBN44XK99MVMaXe6sySseeNzaauwDswvcZ MZgzWG8qMCm4Rn2L5JHAChrmrqNtjWXkbJzdqZlCfeTw4wIMNIXb/gRYQQNdZ7lBiksd Hk7zjFo4z+bXC2METFdb0yvf/Kco5Hj3PmUU+HsI1Ph8bo1rAgjKRXvWtTSudBfTUvXW PaDAgKV7DrLf/zOOpUXHUq6IIno89VLxsBU3dDpwsTTkPnvlfAsopyyfhWokw1J2cAbA jbuAo7JHrDQKQU2yXsolMkafa6boherPkBsBASFxybmsxp79V5HZerFOMu4A3eaiJoHn 2A9g== 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:dkim-signature; bh=fEAmTEdNizSUWXKdPuS6LL74RLJsP+T/eHBkCvQrdqk=; b=FWkXCwiILSMg2kWz5gCigen4VrTvPmGCwmtfTZ9Gwt6uOl718Bx5btu+XTe5nHZyNa IS7mtzhWLnPDLeu1kWiLvSVHdytpDgsJjMJaqNTYrKEESpkZJ0xnm5F+hBhjVhFK64CJ NUjIxNeJCnYj2O6312PS8bqOWmWIRMqj8q7oksFq2AWdp3X3B2Dzg15Gw+2s7IfW+Xgr 5R9uYO9fzXru0YcvbtrRSlgm3ZBCav34I+5UkQH11tRcRunNKCQeqJAHRhlWn7efMbhq w8qlol6lhVSR793QZprGcsiZnsQ3gQSXXVyMZTkLDtQUVKR6HX6gKO19v9nza5X6ezcR 0P/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YH6f4GSJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si4333699otq.250.2020.01.30.18.53.58; Thu, 30 Jan 2020 18:54:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YH6f4GSJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgAaCwJ (ORCPT + 99 others); Thu, 30 Jan 2020 21:52:09 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36312 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbgAaCwI (ORCPT ); Thu, 30 Jan 2020 21:52:08 -0500 Received: by mail-pf1-f195.google.com with SMTP id 185so2541013pfv.3 for ; Thu, 30 Jan 2020 18:52:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fEAmTEdNizSUWXKdPuS6LL74RLJsP+T/eHBkCvQrdqk=; b=YH6f4GSJ+puDeLRjgj4sqKC9rM+5OJMAMj5bNNAd45cq6tZQTvXMo4fghb0bFVA42+ o/ohcEcjKUtelQb0ZPJAmxNseIaNui1/Rgc317qpwZs2UNJCaQo0HKHtop2sl9EhGO4N d7wWKo98hocqI0covxpI/hwF7dc7/W71PHWUbe3cFbVxKW+qDh+vf33eR7LoMTyKUI4k hpKX7hyrSPC10XASVqL4BP7QSWFD0Vd+SWPRWPaMw2Hcobh1+IY9a5aWYj08CP2Nh5c/ cLS4UizbkV2g344TvyJ8+VPhud2IS87QjDrR7kgmOiyq63mCTElGnTXqQWwyaav7ln+b 48eg== 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=fEAmTEdNizSUWXKdPuS6LL74RLJsP+T/eHBkCvQrdqk=; b=i95av5VXAWyJntpiJSm0KbT046i5xXypK4927binRVVTUgM8QRQvOjRJkMTPse/eO9 TfMjXgRRS9AXLsHzSyhPirBvmcugsOXbgsk5gZ/II3opcvXFTyfFApwTOwFxRJiCS1r4 TvJLfoTan24O8mlP83QYgJfiWdqYxHt5yKbeFih2dsTfV2qcN39Xep+flYYar+2+q7Zs hNLxmcgApvYOf9YhOeNJprqFv03pOjXei0bs1kY37L6JEa/yPC2mBu4DuFjp3X2zvEQt 5Go2Wvt2Q1XcHDzAjGdj03XBnAf3yj8XftrVv2b4U4WPj4X+1xJ0KE/eRU+QN0F8CHV1 ztHw== X-Gm-Message-State: APjAAAWRvN9BnT2RNRVpwTBkTG7+Qgd0sFJIYCJ2Xo9k2cN5qEi8AHD7 /TOWFe3PgJjV5R5iD8Oq4XncDB7KCrz1rexoNFhcvA== X-Received: by 2002:a63:597:: with SMTP id 145mr7644337pgf.384.1580439127902; Thu, 30 Jan 2020 18:52:07 -0800 (PST) MIME-Version: 1.0 References: <1579805221-31905-1-git-send-email-alan.maguire@oracle.com> <1579805221-31905-4-git-send-email-alan.maguire@oracle.com> In-Reply-To: <1579805221-31905-4-git-send-email-alan.maguire@oracle.com> From: Brendan Higgins Date: Thu, 30 Jan 2020 18:51:56 -0800 Message-ID: Subject: Re: [PATCH v2 kunit-next 3/3] kunit: update documentation to describe debugfs representation To: Alan Maguire Cc: Greg KH , Jonathan Corbet , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , "open list:DOCUMENTATION" , Linux Kernel Mailing List 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 On Thu, Jan 23, 2020 at 10:47 AM Alan Maguire wrote: > > Documentation should describe debugfs layout and semantics. > > Signed-off-by: Alan Maguire > --- > Documentation/dev-tools/kunit/usage.rst | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst > index 7cd56a1..b05c843 100644 > --- a/Documentation/dev-tools/kunit/usage.rst > +++ b/Documentation/dev-tools/kunit/usage.rst > @@ -590,3 +590,22 @@ able to run one test case per invocation. > > .. TODO(brendanhiggins@google.com): Add an actual example of an architecture > dependent KUnit test. > + > +KUnit debugfs representation > +============================ > +When kunit test suites are initialized, they create an associated directory > +in /sys/kernel/debug/kunit/. The directory contains two files > + > +- results: "cat results" displays results of last test run > +- run: "cat run" runs the test suite and displays the results > + > +Thus to re-run all currently loaded suites and display results, we can do this: > + > +``` > +$ cat /sys/kernel/debug/kunit/*/run > +``` This should be in a ".. code-block:: bash", see above in this file for an example. > + > +The debugfs representation is primarily of use when kunit test suites are > +run in a native environment, either as modules or builtin. Having a way > +to display results like this is valuable as otherwise results can be > +intermixed with other events in dmesg output. > -- > 1.8.3.1 >